I have the following script and I'm wondering how to do the following. I want to check if (userinfo.paidstatus = 'Yes' or 'No' and that user.trial='In Process' or 'Paid') and if I can make this the result for $paypalstatus; that would be great or does anyone else have any ideas how I can change my query to make it check all of these settings?
THANKS IN ADVANCE..
$require="AND haircolor='Blonde'";
$paypalstatus = ''; // THIS IS THE PROBLEM...
$getescorts = mysql_query("SELECT * FROM userinfo, user WHERE (userinfo.category1='Female Escorts' OR userinfo.category2='Female Escorts') $require $paypalstatus AND userinfo.status='Approved' AND userinfo.id = user.id");
$getpageproperties = mysql_fetch_array($getescorts);