Menu
Hi
I’m trying to use the expression:
if (mysql_num_rows($qry) > 0)
to test whether a record exists with certain criteria. I get the error “mysql_num_rows(): supplied argument is not a valid MySQL result resource” – I assume because $qry doesn’t return anything. What’s the right way to do this test?