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

0 Members and 1 Guest are viewing this topic.

Offline shamsuljewelTopic starter

  • Enthusiast
    • 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
  • 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);
?>
Before posting, read the guidelines. When you do post a topic, post your code in code tags.
Turn on error_reporting() with E_ALL. Show us output & errors.
Before you ask me how to do something I suggest, try it.
"It doesn't work" isn't going to get any responses. Once you've changed your code, post the new code!
Before asking what a function does, check the manual: http://php.net

PHP Freaks Forums

« on: »

Tired of these ads? Purchase a supporter subscription to get rid of them.