Author Topic: help Warning: mysql_num_rows(): supplied argument is not a valid MySQL result re  (Read 306 times)

0 Members and 1 Guest are viewing this topic.

Offline shamsuljewelTopic starter

  • Enthusiast
  • Posts: 95
    • View Profile
I got this problem
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /var/www/html/infobangla/normal_user_reg.php on line 19

what is the problem?

Offline jesirose

  • Fanatic
  • Posts: 3,819
  • Gender: Female
  • PHP Goddess
    • View Profile
    • Reed's Training Blog
First of all - Post your code.
Secondly, this error usually means there was a problem with your SQL. Do your code like this:
Code: [Select]
<?php
$sql 
"SQL HERE";
$result mysql_query($sql) or die(mysql_error().' SQL: '.$sql);
?>
Every time you post "It didn't work" without more explanation, God kills a kitten.
When you post code without code tags, He just teases a puppy. But it's still sad.
What does that php function do? | What does that term mean? | I don't see any errors! | Awesome API Interface
PHP Goddess with Attitude since 2004