$select_db = @mysql_select_db($db_name,
This line is creating the error, the function does not return a value, so you don't need to catch it.
$db_name = "abc_db";
$table_name = "abc_table";
$link = @mysql_connect("localhost"
mysql_select_db($db_name, $link) or die("could not select database");
Main Topics
Browse All Topics





by: phlcPosted on 2001-08-14 at 12:18:19ID: 6385622
check if the user you are connecting have permissions on this database.