goldfish
07-05-03, 07:22
$db = mysql_connet("localhost","goldfishphp","my password") or mysql_die("Unable to connect to database");
mysql_select_db("goldfishphp_uk_db","$db);
$sqlquery = "SELECT * FROM articles WHERE id = 1";
$result = mysql_query($sqlquery,$db) or mysql_die("No record found!");
$article = mysql_fetch_object($result);
mysql_free_result($result);
whats wrong?
the DB is right ,the password is right (in my script anyway ;)) and all the table names are right.... whats wrong?
mysql_select_db("goldfishphp_uk_db","$db);
$sqlquery = "SELECT * FROM articles WHERE id = 1";
$result = mysql_query($sqlquery,$db) or mysql_die("No record found!");
$article = mysql_fetch_object($result);
mysql_free_result($result);
whats wrong?
the DB is right ,the password is right (in my script anyway ;)) and all the table names are right.... whats wrong?