Please login or register.

Login with username, password and session length
Advanced search  

News:

We are constantly trying to improve PHP Freaks and these forums, so feel free to go to the PHPFreaks Comments/Suggestions board and point out anything you'd like to see different!

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

0 Members and 1 Guest are viewing this topic.

shamsuljewel

  • Enthusiast
  • Offline Offline
  • Posts: 94
    • 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?
Logged

jesirose

  • Fanatic
  • Offline Offline
  • Gender: Female
  • Posts: 3,505
    • View Profile
    • WWW
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);
?>
Logged
Before posting, read the guidelines. When you do post a topic, post your code. In code tags.
Before you ask me how to do something I suggest, Google it.
Before asking what a function does, check the manual: http://php.net

Grady Consulting :: The Rat House

PHP Freaks Forums

 
 
 

Page created in 0.039 seconds with 20 queries.