jbrill Posted July 12, 2007 Share Posted July 12, 2007 why will this not work? <? include '../includes/dbconnect.php'; $result = mysql_query("SELECT * FROM hoursworked"); while($row = mysql_fetch_array($result)) { echo "". $row['id'] .""; } ?> i keep getting the following error... Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/morow/public_html/admin/test.php on line 5 Link to comment https://forums.phpfreaks.com/topic/59721-solved-stupid-question-why-wont-this-work/ Share on other sites More sharing options...
teng84 Posted July 12, 2007 Share Posted July 12, 2007 if your sure about the connection then run that on your sql see if that works on the database "SELECT * FROM hoursworked" Link to comment https://forums.phpfreaks.com/topic/59721-solved-stupid-question-why-wont-this-work/#findComment-296812 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.