RE: [PHP-WIN] Problems with mysql_num-rows()

2004-10-31 Thread Svensson, B.A.T. (HKG)
-Original Message- From: Arne Essa Madsen To: [EMAIL PROTECTED] Sent: 31-10-2004 19:34 Subject: [PHP-WIN] Problems with mysql_num-rows() I have the following problem: This one does not work: $query = "SELECT * from user where name='$userid' and pass=password('

[PHP-WIN] Problems with mysql_num-rows()

2004-10-31 Thread Arne Essa Madsen
I have the following problem: This one does not work: $query = "SELECT * from user where name='$userid' and pass=password('$password')"; $result = mysql_query($query, $link); $num_rows = mysql_num_rows($result); I get this error message: Warning: mysql_num_rows(): supplied argument is not a