Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MySQL-Link resource error

Status
Not open for further replies.

meeble

Programmer
Sep 24, 2002
137
GB
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top