Can anyone help me to sort this out. I've been trying to get it to work for 2 days and my hair is starting to turn white.
It generates this error:PHP Code:$result = 'mysql_query(SELECT * FROM news);';
if ($result){
echo "success!";
}else{
die ('<br>Error'.mysql_error());
}
while ($row = mysql_fetch_array($result))
{
echo "<p> ".$row[content]." </p>";
}
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/spaceon/public_html/chickens/test.php on line 71
Line 71 is the mysql_fetch_array.
Thanks



.




Bookmarks