hi, what is wrong with this? I want it to show on a blank page the first 10 rows of the table. What should i add/delete?
<?php
$host="localhost"; // Host name
$username=""; // Mysql username
$password=""; // Mysql password
$db_name="test"; // Database name
$tbl_name="test_url"; // Table name
// Connect to server and select databse.
mysql_connect("$host", "$username", "$password")or die("cannot connect");
mysql_select_db("$db_name")or die("cannot select DB");
$sql="SELECT * FROM table LIMIT 10";
$result=mysql_query($sql);
mysql_close();
?>