Forum Moderators: coopster

Message Too Old, No Replies

MySQL-Link resource

What does this mean?

         

aaronjf

2:49 am on May 15, 2003 (gmt 0)

10+ Year Member



I am a MySQL PHP newbie. I have been trying to get some pages I have built to access the database but I keep geting "Supplied argument is not a valid MySQL-Link resource" when I try to use the pages. What does this mean? How can I go about fixing it?

jatar_k

3:48 am on May 15, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



it means that the query you fed through mysql_query and are now trying to feed to mysql_fetch_array (for example) is no good, there is an error in the query somewhere because mysql_query probably bombed out.

i use this
mysql_query($dq) or die("<p>".mysql_errno().": ".mysql_error()."<BR>");

so that if the query bombs i get the proper error message and can figure out what happened. I also echo the query before firing it off during development so that i can see what i have constructed and get a better look at it.