Hello,
I have a flash form that builds a mySQL query dynamically then sends it as a variable to a PHP form. The php code:
$itemOne = $_GET['expresOne'];
@mysql_select_db('incoming') or die(mysql_error());
$query="SELECT * FROM reg_account WHERE $itemOne";
$result=mysql_query($query);
if (mysql_num_rows($result) == 1) {
echo "stat_txt=found";
} else {
echo "&stat_txt=not found&";
}
expresOne is the variable sent from the flash form and it is supposed look like this:
expresOne='businessName'='myBusiness' AND 'city'='myCity' AND 'zip'='myZip';
I tried to simulate the PHP MyAdmin query window but for some reason I get this error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\php\get_client.php on line 14
&stat_txt=not found&
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in c:\inetpub\wwwroot\php\get_client.php on line 20
Is there anyone that has had this trouble before? Are there any suggestions you may have? Also, I have tried using both POST and GET.
Thanks in advance...