I have the code:
$result = mysql_query("SELECT * FROM jobs order by jobnumber",$db);
while ($myrow = mysql_fetch_row($result)) {
echo blah
}
This brings up the error:
PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in c:\inetpub\ on line 22 PHP Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in c:\inetpub\ on line 24
What is causing these errors and why won't it work?
Many thanks
James
$result = mysql_query("SELECT * FROM jobs order by jobnumber",$db);
while ($myrow = mysql_fetch_row($result)) {
echo blah
}
This brings up the error:
PHP Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in c:\inetpub\ on line 22 PHP Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in c:\inetpub\ on line 24
What is causing these errors and why won't it work?
Many thanks
James