PHP scripts and programs for Beginner to Master

php programs, php ready to use scripts & functions, css tutorials, html, javascripts, ajax examples for Beginner to Master

[Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in]


Hi,
when you are doing programming in php you might be getting a error like

[Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in] 

this in your php script.

Most of the times if there is mistake in spelling then many errors occurs.

Just check out following things if you encounter this kind of Warning in your php program

  1. First check your query.
  2. If you are using different connection file for creating connection then check whether it is included in your script or not.
  3. If query is correct then check your Database Connection.

I'm reading: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource inTweet this!

0 comments:

Post a Comment