I have this code
$query = “SELECT * FROM prayerconcerns where prayerconcern <> ” order by person”;
$result = @mysql_query ($query);
$num_rows = mysql_num_rows ($result);
I get error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:Inetpubwwwrootprayerconcern.php on line 94
PHP Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:Inetpubwwwrootprayerconcern.php on line 94
If I change query to this:
$query = “SELECT * FROM prayerconcerns order by person”;
It works ok.
I guess it has something to do with escaping the characters but I can’t get figure it out.
Thanks,
Rut