•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 426,321 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,291 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums
Views: 53571 | Replies: 5
•
•
Join Date: Jun 2005
Posts: 1
Reputation:
Rep Power: 0
Solved Threads: 0
hi,
i write a code like this
$user_id = $hd_cookie['user_id'];
$user_password = $hd_cookie['auth'];
$sql = "SELECT * FROM hd_users WHERE user_id='$user_id' AND user_password='$user_password'";
$r_user = mysql_query($sql);
$num=mysql_num_rows($r_user); //line 24
it shows Warning
Warning: Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\helpdeskfinal\includes\auth.php on line 24
when i print the sql statement and run the statement in MySql Window it gives the result.but from here it didn't give the result why?
i am using PHPTRIAD 2.1.1 version is this version supports mysql_num_rows????
please solve my problem
Thanks
Srinivas
i write a code like this
$user_id = $hd_cookie['user_id'];
$user_password = $hd_cookie['auth'];
$sql = "SELECT * FROM hd_users WHERE user_id='$user_id' AND user_password='$user_password'";
$r_user = mysql_query($sql);
$num=mysql_num_rows($r_user); //line 24
it shows Warning
Warning: Supplied argument is not a valid MySQL result resource in c:\apache\htdocs\helpdeskfinal\includes\auth.php on line 24
when i print the sql statement and run the statement in MySql Window it gives the result.but from here it didn't give the result why?
i am using PHPTRIAD 2.1.1 version is this version supports mysql_num_rows????
please solve my problem
Thanks
Srinivas
•
•
•
•
•
•
•
•
DaniWeb MySQL Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource (PHP)
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource (PHP)
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource (PHP)
- mysql_numrows(): supplied argument is not a valid MySQL result resource (PHP)
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource (PHP)
- Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in (PHP)
- Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource (PHP)
- mysql_num_rows(): supplied argument is not a valid MySQL result resource in /user/690 (PHP)
- Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource (PHP)
Other Threads in the MySQL Forum
- Previous Thread: Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource
- Next Thread: generating dynamic/runtime query



Threaded Mode