hi,
i write a code like this
$user_id = $hd_cookie;
$user_password = $hd_cookie;
$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