RE: [PHP-DB] mysql_query troubles

2001-07-17 Thread Karl Phillipson
= mysql_num_rows($testResult); print $num_rows; exit(); mysql_free_result($testResult); ? -Original Message- From: Brad Wright [mailto:[EMAIL PROTECTED]] Sent: 17 July 2001 06:31 To: [EMAIL PROTECTED] Subject: [PHP-DB] mysql_query troubles Hi all', I have a mysql_query that reads

[PHP-DB] mysql_query troubles

2001-07-16 Thread Brad Wright
Hi all', I have a mysql_query that reads: $testResult = mysql_query(SELECT * FROM login_table where Pass = password('$password')) or die (ouch); $num_rows = mysql_num_rows($testResult); the problem is that I keep getting a value of 0 for $num_rows when I know the table has 1 entry for PAss