Sorry, I am new to this game, can anyone tell me what ive done wrong.
Warning: Supplied argument is not a valid MySQL result resource in /home/gywebs99/public_html/gywebs/whatandwhere/pubs.php on line 53
Here is the code, with line 53 being 'print ("aregafgadfg");' which prints.
<?
$query = "SELECT * FROM tblPubGuide";
$result = mysql_db_query ('mydatabase', $query);
print ("aregafgadfg");
while ($row = mysql_fetch_array ($result))
{
$pubname = $row["PubName"];
$description = $row["Description"];
print ("$pubname");
print ("$description");
}
?>
Cheers
Stu