Jump to content

[SOLVED] stupid question... why wont this work?


jbrill

Recommended Posts

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.