GIF89a;
| Direktori : /home/serb/www/includes/ |
| Current File : /home/serb/www/includes/boysheader_cities.php |
<div style=" width:990px; height:250px; overflow:auto;">
<?
if($_SESSION['countryname']=='US')
{
$todate=date('Y-m-d');
$sql_ccescort="SELECT * FROM escort_details where status='a' AND gender='Male' AND country_name='".$_SESSION['countryname']."'";
$row_ccescort=execute_query($sql_ccescort);
$num_ccescort=mysql_num_rows($row_ccescort);
if($num_ccescort>0)
{ ?>
<div class="city-list"> <?
$sql_state="select * from states order by name limit 0,5";
$res_state=execute_query($sql_state);
while($row_state=mysql_fetch_array($res_state))
{
$sql_eststate="select * from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."'";
$res_eststate=execute_query($sql_eststate);
$num_eststate=mysql_num_rows($res_eststate);
if($num_eststate>0)
{
?>
<div style="float:left; text-align:center; width:140px; margin-top:10px;">
<h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2>
<?
$todatee=date('Y-m-d');
$sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city";
$res_cityescort=execute_query($sql_cityescort);
while($row_cityescort=mysql_fetch_array($res_cityescort))
{
?>
<div class="updatehdrstylecity">
<a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><?
echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')'
?></a>
</div>
<? } ?>
<br class="spacer" />
</div>
<? }
} ?>
<br class="spacer" />
</div>
<div class="city-list"> <?
$sql_state="select * from states order by name limit 5,9";
$res_state=execute_query($sql_state);
while($row_state=mysql_fetch_array($res_state))
{
$sql_eststate="select * from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."'";
$res_eststate=execute_query($sql_eststate);
$num_eststate=mysql_num_rows($res_eststate);
if($num_eststate>0)
{
?>
<div style="float:left; text-align:center; width:140px; margin-top:10px;">
<h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2>
<?
$todatee=date('Y-m-d');
$sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city";
$res_cityescort=execute_query($sql_cityescort);
while($row_cityescort=mysql_fetch_array($res_cityescort))
{
?>
<div class="updatehdrstylecity">
<a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><?
echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')'
?></a>
</div>
<? } ?>
<br class="spacer" />
</div>
<? }
} ?>
<br class="spacer" />
</div>
<div class="city-list"> <?
$sql_state="select * from states order by name limit 14,9";
$res_state=execute_query($sql_state);
while($row_state=mysql_fetch_array($res_state))
{
$sql_eststate="select * from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."'";
$res_eststate=execute_query($sql_eststate);
$num_eststate=mysql_num_rows($res_eststate);
if($num_eststate>0)
{
?>
<div style="float:left; text-align:center; width:140px; margin-top:10px;">
<h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2>
<?
$todatee=date('Y-m-d');
$sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city";
$res_cityescort=execute_query($sql_cityescort);
while($row_cityescort=mysql_fetch_array($res_cityescort))
{
?>
<div class="updatehdrstylecity">
<a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><?
echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')'
?></a>
</div>
<? } ?>
<br class="spacer" />
</div>
<? }
} ?>
<br class="spacer" />
</div>
<div class="city-list"> <?
$sql_state="select * from states order by name limit 23,10";
$res_state=execute_query($sql_state);
while($row_state=mysql_fetch_array($res_state))
{
$sql_eststate="select * from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."'";
$res_eststate=execute_query($sql_eststate);
$num_eststate=mysql_num_rows($res_eststate);
if($num_eststate>0)
{
?>
<div style="float:left; text-align:center; width:140px; margin-top:10px;">
<h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2>
<?
$todatee=date('Y-m-d');
$sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city";
$res_cityescort=execute_query($sql_cityescort);
while($row_cityescort=mysql_fetch_array($res_cityescort))
{
?>
<div class="updatehdrstylecity">
<a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><?
echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')'
?></a>
</div>
<? } ?>
<br class="spacer" />
</div>
<? }
} ?>
<br class="spacer" />
</div>
<div class="city-list"> <?
$sql_state="select * from states order by name limit 33,7";
$res_state=execute_query($sql_state);
while($row_state=mysql_fetch_array($res_state))
{
$sql_eststate="select * from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."'";
$res_eststate=execute_query($sql_eststate);
$num_eststate=mysql_num_rows($res_eststate);
if($num_eststate>0)
{
?>
<div style="float:left; text-align:center; width:140px; margin-top:10px;">
<h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2>
<?
$todatee=date('Y-m-d');
$sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city";
$res_cityescort=execute_query($sql_cityescort);
while($row_cityescort=mysql_fetch_array($res_cityescort))
{
?>
<div class="updatehdrstylecity">
<a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><?
echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')'
?></a>
</div>
<? } ?>
<br class="spacer" />
</div>
<? }
} ?>
<br class="spacer" />
</div>
<div class="city-list"> <?
$sql_state="select * from states order by name limit 40,10";
$res_state=execute_query($sql_state);
while($row_state=mysql_fetch_array($res_state))
{
$sql_eststate="select * from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."'";
$res_eststate=execute_query($sql_eststate);
$num_eststate=mysql_num_rows($res_eststate);
if($num_eststate>0)
{
?>
<div style="float:left; text-align:center; width:140px; margin-top:10px;">
<h2 style="font-size:14px !important; line-height:3px !important;"><?=$row_state['name']?></h2>
<?
$todatee=date('Y-m-d');
$sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender='Male' AND escort_state='".$row_state['name']."' AND country_name='".$_SESSION['countryname']."' group By escort_city";
$res_cityescort=execute_query($sql_cityescort);
while($row_cityescort=mysql_fetch_array($res_cityescort))
{
?>
<div class="updatehdrstylecity">
<a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><?
echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')'
?></a>
</div>
<? } ?>
<br class="spacer" />
</div>
<? }
} ?>
<br class="spacer" />
</div>
<br class="spacer" />
<?
}?>
<?
}
else
{
$todatee=date('Y-m-d');
$sql_ccescort="SELECT * FROM escort_details where status='a' AND gender='Male' AND country_name='".$_SESSION['countryname']."'";
$row_ccescort=execute_query($sql_ccescort);
$num_ccescort=mysql_num_rows($row_ccescort);
if($num_ccescort>0)
{
$sql_cityescort="select escort_city, LOWER(REPLACE(REPLACE(escort_city, ' ', '-'), '&', 'and')) AS escort_url,count(escort_city) from escort_details where status='a' AND gender='Male' AND country_name='".$_SESSION['countryname']."' group By escort_city";
$res_cityescort=execute_query($sql_cityescort);
while($row_cityescort=mysql_fetch_array($res_cityescort))
{
?>
<div class="updatehdrstylecity" style="width:190px !important;">
<a href="http://<?=$row_cityescort['escort_url']?>.<?php echo $serverName; ?>"><?
echo $row_cityescort['escort_city'].'('.$row_cityescort['count(escort_city)'].')'
?></a>
</div>
<? } ?>
<br class="spacer" />
<? }
} ?>
</div>