I am creating an SQL statement on the fly, dependent upon the users search.
When I run the code, I am getting the following error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in d:\php\record.php on line 66
The code is below:
Line 65 $strSQL = mysql_query($sql);
Line 66 $totalrows = mysql_num_rows($strSQL);
Any ideas why I am getting this error?