Jump to content
  • Advertisement


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


Big error

This topic is 5567 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey, looking at my last post, I can see that the code is just to big for you to see the error. So could some one tell me what this php error means? Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/demonrea/public_html/jimbob/email/index.php on line 44

Share this post

Link to post
Share on other sites
That usually means that the query you did failed. Ideally you have something like:

$result = mysql_query("SELECT * from whatever)
or die("Invalid query: " . mysql_error());

I would hazzard a guess that you are using mysql_num_rows($result) without first checking to see if $result is actually a valid resource handle.

PlaneShift - A MMORPG in development.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!