GIF89a;
| Direktori : /home/serb/www/ |
| Current File : /home/serb/www/advanced_search.php |
<? session_start();
include("lib/globals.php");
include("lib/common.php");
include("lib/functions.php");
include"lib/SimpleImage.php";
?>
<? include "includes/header_top.php";?>
<body>
<? include "includes/header.php";?>
<div class="main_bg">
<div style="height:32px;"></div>
<div style="width:1000px; margin:0 auto;">
<div class="statedetails">
<div class="stdtls_header">
<span style="color:#000;">Escort Search List </span>
</div>
<div class="stdtls_midder">
<div style=" width:990px;">
<div style="width:960px; margin:0 auto;">
<br/>
<?
//$search=$_POST['search'];
if($_POST['search'])
{
$todate=date('Y-m-d');
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND (nickname like '%$search%' or escort_city like '%$search%' or tel_national like '%$search%' or ethencity like '%$search%' or hair_color like '%$search%' ) ";
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']) && ($_POST['hair_color']) && ($_POST['avl']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' And online_img='images/online.gif' AND gender='Male'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' And online_img='images/online.gif' AND gender='Male' ";
}
}
else if(($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']) && ($_POST['hair_color']) && ($_POST['avl']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' And online_img='images/online.gif' AND gender='Male'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' And online_img='images/online.gif' AND gender='Male' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']) && ($_POST['hair_color']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' AND gender='Male'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' AND gender='Male' ";
}
}
else if(($_POST['ethnicity']) && ($_POST['age']) && ($_POST['hair_color']) && ($_POST['avl']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' And online_img='images/online.gif' AND gender='Male'";
}
else if(($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']) && ($_POST['hair_color']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' And gender='Male'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' And gender='Male' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') AND gender='Male'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') AND gender='Male' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']) && ($_POST['hair_color']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']) && ($_POST['avl']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And online_img='images/online.gif'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And online_img='images/online.gif' ";
}
}
else if(($_POST['age']) && ($_POST['hair_color']) && ($_POST['avl']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' And online_img='images/online.gif' AND gender='Male'";
}
else if(($_POST['ethnicity']) && ($_POST['age']) && ($_POST['hair_color']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' AND gender='Male'";
}
else if(($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And gender='Male'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And gender='Male' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['men']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND gender='Male'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND gender='Male' ";
}
}
else if(($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']) && ($_POST['hair_color']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['hair_color']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' And hair_color='".$_POST['hair_color']."'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' And hair_color='".$_POST['hair_color']."' ";
}
}
else if(($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']) && ($_POST['avl']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And online_img='images/online.gif'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And online_img='images/online.gif' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag')";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['avl']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' And online_img='images/online.gif'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' And online_img='images/online.gif' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['hair_color']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' And hair_color='".$_POST['hair_color']."'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' And hair_color='".$_POST['hair_color']."' ";
}
}
else if( ($_POST['hair_color']) && ($_POST['avl']) && ($_POST['men']))
{
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' And hair_color='".$_POST['hair_color']."' And online_img='images/online.gif' AND gender='Male'";
}
else if(($_POST['age']) && ($_POST['hair_color']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."' AND gender='Male'";
}
else if(($_POST['ethnicity']) && ($_POST['age']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') AND gender='Male'";
}
else if(($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['men']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' And gender='Male'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' And gender='Male' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['men']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND gender='Male'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND gender='Male' ";
}
}
else if(($_POST['ethnicity']) && ($_POST['age']) && ($_POST['hair_color']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."'";
}
else if(($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['hair_color']))
{
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' And hair_color='".$_POST['hair_color']."'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' And hair_color='".$_POST['hair_color']."' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['hair_color']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' And hair_color='".$_POST['hair_color']."'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' And hair_color='".$_POST['hair_color']."' ";
}
}
else if(($_POST['ethnicity']) && ($_POST['age']) && ($_POST['avl']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') And online_img='images/online.gif'";
}
else if(($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['avl']))
{
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' And online_img='images/online.gif'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' And online_img='images/online.gif' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['avl']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' And online_img='images/online.gif'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' And online_img='images/online.gif' ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['age']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND (age BETWEEN '$fag' AND '$lag')";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND (age BETWEEN '$fag' AND '$lag') ";
}
}
else if(($_POST['location']) && ($_POST['ethnicity']) && ($_POST['age']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag')";
}
else if(($_POST['inout']) && ($_POST['ethnicity']) && ($_POST['age']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag')";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag') ";
}
}
else if(($_POST['location']) && ($_POST['inout']) && ($_POST['ethnicity']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes' AND ethencity='".$_POST['ethnicity']."'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' AND ethencity='".$_POST['ethnicity']."' ";
}
}
else if( ($_POST['avl']) && ($_POST['men']))
{
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' And online_img='images/online.gif' AND gender='Male'";
}
else if( ($_POST['hair_color']) && ($_POST['men']))
{
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' And hair_color='".$_POST['hair_color']."' AND gender='Male'";
}
else if(($_POST['age']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND (age BETWEEN '$fag' AND '$lag') AND gender='Male'";
}
else if(($_POST['ethnicity']) && ($_POST['men']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' AND gender='Male'";
}
else if(($_POST['inout']) && ($_POST['men']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND gender='Male'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND gender='Male' ";
}
}
else if(($_POST['location']) && ($_POST['men']))
{
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND gender='Male'";
}
else if(($_POST['ethnicity']) && ($_POST['hair_color']))
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' And hair_color='".$_POST['hair_color']."'";
}
else if(($_POST['age']) && ($_POST['hair_color']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND (age BETWEEN '$fag' AND '$lag') And hair_color='".$_POST['hair_color']."'";
}
else if(($_POST['location'])&& ($_POST['hair_color']))
{
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' And hair_color='".$_POST['hair_color']."'";
}
else if(($_POST['inout']) && ($_POST['hair_color']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' And hair_color='".$_POST['hair_color']."'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' And hair_color='".$_POST['hair_color']."' ";
}
}
else if(($_POST['age']) && ($_POST['avl']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND (age BETWEEN '$fag' AND '$lag') And online_img='images/online.gif'";
}
else if(($_POST['ethnicity']) && ($_POST['avl']))
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' And online_img='images/online.gif'";
}
else if(($_POST['inout']) && ($_POST['avl']))
{
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND online_img='images/online.gif'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND online_img='images/online.gif' ";
}
}
else if(($_POST['location']) && ($_POST['avl']))
{
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' And online_img='images/online.gif'";
}
else if(($_POST['inout']) && ($_POST['age']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes' AND (age BETWEEN '$fag' AND '$lag')";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' and outcall='Yes' AND (age BETWEEN '$fag' AND '$lag') ";
}
}
else if(($_POST['ethnicity']) && ($_POST['age']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' AND (age BETWEEN '$fag' AND '$lag')";
}
else if(($_POST['location']) && ($_POST['age']))
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND (age BETWEEN '$fag' AND '$lag')";
}
else if(($_POST['location']) && ($_POST['inout']))
{
$loc=$_POST['location'];
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' AND incall='Yes'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%' and outcall='Yes' ";
}
}
else if(($_POST['location']) && ($_POST['ethnicity']))
{
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' AND escort_city like '%$loc%'";
}
else if(($_POST['inout']) && ($_POST['ethnicity']))
{
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' AND incall='Yes'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."' and outcall='Yes' ";
}
}
else if($_POST['men'])
{
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND gender='Male'";
}
else if($_POST['trans'])
{
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND gender='Trans'";
}
else if($_POST['location'])
{
$loc=$_POST['location'];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%$loc%'";
}
else if($_POST['inout'])
{
if($_POST['inout']=='Incall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND incall='Yes'";
}
if($_POST['inout']=='Outcall')
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND outcall='Yes' ";
}
}
else if($_POST['ethnicity'])
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND ethencity='".$_POST['ethnicity']."'";
}
else if($_POST['age'])
{
$ag=explode('-',$_POST['age']);
$fag= $ag[0];
$lag= $ag[1];
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND (age BETWEEN '$fag' AND '$lag')";
}
else if($_POST['avl'])
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND online_img='images/online.gif'";
}
else
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND gender!='Male' AND country_name='".$_SESSION['countryname']."' Order BY id DESC LIMIT 0,40";
}
$res_locescort=execute_query($sql_locescort);
$num_locescort=mysql_num_rows($res_locescort);
if($num_locescort>0)
{
while($row_locescort=mysql_fetch_array($res_locescort))
{
increase_impression($row_locescort['id']);
?>
<div class="escortpicsnew" style="margin-bottom:5px;">
<?
if($row_locescort['ft_ad_status']=='Yes')
{?>
<div style="width:229px; height:107px; margin-left:-1px; margin-top:-3px; text-align:left; position:absolute; z-index:3;"><img src="images/vip22.png" style="width:91px; height:123px;" /></div>
<? } ?>
<div class="estname">
<h1><?=$row_locescort['nickname']?></h1></div>
<div class="estimage">
<?
$sql_image="SELECT * FROM escort_photo where postid='".$row_locescort['id']."'";
$res_image=execute_query($sql_image);
$row_image=mysql_fetch_array($res_image);
if($row_image['picture']!="")
{
?>
<a href="escort-service-dtls.php?name=<?=$row_locescort['nickname']?>&phone=<?=$row_locescort['tel_national']?>&cityname=<?=$row_locescort['escort_city']?>"><img src="avtar/<?=$row_image['picture']?>" style="width:210px; height:240px;" /></a>
<? } else
{ ?>
<a href="escort-service-dtls.php?name=<?=$row_locescort['nickname']?>&phone=<?=$row_locescort['tel_national']?>&cityname=<?=$row_locescort['escort_city']?>"> <img src="images/no_photo_female.gif" style="width:210px; height:240px;" /></a>
<? } ?>
</div>
<div class="estlocation"><?=$row_locescort['escort_city']?></div>
</div>
<?
} ?>
<br class="spacer" />
<?
} else {?>
<div style="text-align:center; width:550px; margin:0 auto;">
<p class="noescort">
Sorry, right now there is no any escorts in <?=$row_country['country']?> available.
</p>
</div>
<? } ?>
</div>
</div>
</div>
<div class="stdtls_footer"></div>
</div>
<!--<div class="estdetailscnt22">
<div style="width:960px; margin:0 auto;">
<br/>
<?
$ii=1;
if($_GET['cityname'])
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND escort_city like '%".$_GET['cityname']."%' ORDER BY id DESC";
}
else
{
$sql_locescort="SELECT * FROM escort_details WHERE status='a' AND country_name='".$_SESSION['countryname']."' ORDER BY id DESC ";
}
$res_locescort=execute_query($sql_locescort);
$num_locescort=mysql_num_rows($res_locescort);
if($num_locescort>0)
{
while($row_locescort=mysql_fetch_array($res_locescort))
{
increase_impression($row_locescort['id']);
?>
<div class="escortpicsnew">
<?
if($row_locescort['ft_ad_status']=='Yes')
{?>
<div style="width:229px; height:107px; margin-top:-7px; text-align:left; position:absolute; z-index:3;"><img src="images/vip22.png" style="width:108px; height:107px;" /></div>
<? } ?>
<div class="estname">
<h1><?=$row_locescort['nickname']?></h1></div>
<div class="estimage">
<?
$sql_image="SELECT * FROM escort_photo where postid='".$row_locescort['id']."'";
$res_image=execute_query($sql_image);
$row_image=mysql_fetch_array($res_image);
if($row_image['picture']!="")
{
?>
<a href="escort-service-dtls.php?name=<?=$row_locescort['nickname']?>&phone=<?=$row_locescort['tel_national']?>&cityname=<?=$row_locescort['escort_city']?>"><img src="avtar/<?=$row_image['picture']?>" style="width:210px; height:240px;" /></a>
<? } else
{ ?>
<a href="escort-service-dtls.php?name=<?=$row_locescort['nickname']?>&phone=<?=$row_locescort['tel_national']?>&cityname=<?=$row_locescort['escort_city']?>"> <img src="images/no_photo_female.gif" style="width:210px; height:240px;" /></a>
<? } ?>
</div>
<div class="estlocation"><?=$row_locescort['escort_city']?></div>
</div>
<?
if($ii%4==0)
{
?>
<br class="spacer" />
<div style="height:10px;"> <br class="spacer" /></div>
<?
}
$ii++;
} ?>
<br class="spacer" />
<?
} else {?>
<div style="text-align:center; width:550px; margin:0 auto;">
<p class="noescort">
Sorry, right now there is no any escorts in <?=$row_country['country']?> available.
</p>
</div>
<? } ?>
</div>
<br class="spacer" />
</div>-->
</div>
<br/>
</div>
<!--</div>-->
<? include "includes/footer.php";?>