GIF89a;
Direktori : /home/serb/www/ |
Current File : /home/serb/www/search-result.php |
<? session_start(); include("lib/globals.php"); include("lib/common.php"); include("lib/functions.php"); ?> <? if($_POST) { if($_POST['inoutcals']==1) { $sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND incall='Incall' AND outcall='Outcall' AND zip='".$_POST['zipCode']."'"; } if($_POST['inoutcals']==2) { $sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND incall='Incall' AND zip='".$_POST['zipCode']."'"; } if($_POST['inoutcals']==3) { $sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND outcall='Outcall' AND zip='".$_POST['zipCode']."'"; } if($_POST['inoutcals']=="") { $sql_escort="SELECT * FROM post_ad WHERE (ad_catagory='1' OR ad_catagory='4' OR ad_catagory='5') AND zip='".$_POST['zipCode']."'"; } $res_escort=execute_query($sql_escort); $num_escort=mysql_num_rows($res_escort); if($num_escort>0) { } } ?>