[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.

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

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

Comments

Post a Comment