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 Quote Link to comment 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" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.