Hi,
I am having problems with mysql_num_rows().
I used to have this:
$sqr1="SELECT * FROM $table WHERE GroupName = '$mygroup' ORDER BY SlipNum ASC, DrawNum ASC";
and my site worked well. but now, it seems that every apostroph (') was replaced by (&apos, and I passed to have this:
$sqr1="SELECT * FROM $table WHERE GroupName = '$mygroup' ORDER BY SlipNum ASC, DrawNum ASC";
and I get the error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/anilson1/public_html/Molingokoko_3303/Quem_O_PuroMadie1094/proccessingPLAY.php on line 61
I tried the following and worked
$sqr1="SELECT * FROM $table";
I even tried this:
$sqr1="SELECT * FROM $table WHERE GroupName = '$mygroup' ORDER BY SlipNum ASC, DrawNum ASC";
if(!($result1=mysql_query($sqr1,$connector)))
{echo "problems with selector<br>";}
and I got this:
problems with selector
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/anilson1/public_html/Molingokoko_3303/Quem_O_PuroMadie1094/proccessingPLAY.php on line 61
How can I solve this problem with the apostroph, I tried to change ' by "'" but it goes back to '.
Any help please.
I am having problems with mysql_num_rows().
I used to have this:
$sqr1="SELECT * FROM $table WHERE GroupName = '$mygroup' ORDER BY SlipNum ASC, DrawNum ASC";
and my site worked well. but now, it seems that every apostroph (') was replaced by (&apos, and I passed to have this:
$sqr1="SELECT * FROM $table WHERE GroupName = '$mygroup' ORDER BY SlipNum ASC, DrawNum ASC";
and I get the error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/anilson1/public_html/Molingokoko_3303/Quem_O_PuroMadie1094/proccessingPLAY.php on line 61
I tried the following and worked
$sqr1="SELECT * FROM $table";
I even tried this:
$sqr1="SELECT * FROM $table WHERE GroupName = '$mygroup' ORDER BY SlipNum ASC, DrawNum ASC";
if(!($result1=mysql_query($sqr1,$connector)))
{echo "problems with selector<br>";}
and I got this:
problems with selector
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/anilson1/public_html/Molingokoko_3303/Quem_O_PuroMadie1094/proccessingPLAY.php on line 61
How can I solve this problem with the apostroph, I tried to change ' by "'" but it goes back to '.
Any help please.