ob_start(); require('config.php'); require('ftpclass.php'); require('functions/general.php'); session_start(); /////////Refrech value/////////// define(RAND, mt_rand().mt_rand().mt_rand()); mysql_pconnect(DB_HOST, DB_USERNAME, DB_PASSWORD) or die("Error: Could not connect to the server."); mysql_select_db(DB_DATABASE) or die("Error:". mysql_error()); if(isset($_SESSION['sess_customers_id'])){ if(hasPlacedOrder($_SESSION['sess_customers_id'])>0 && hasApprovedOrder($_SESSION['sess_customers_id'])>0) { $_SESSION['sess_order_id']=hasApprovedOrder($_SESSION['sess_customers_id']); } } ?>
$sql_city="SELECT * FROM tbl_location_area where parent_id != 0 or name='Delhi & NCR' order by popular DESC, name";
$result_city = mysql_query($sql_city);
while($rows_city= mysql_fetch_array($result_city))
{
$city_name[] = $rows_city['name'];
$location_area_id[] = $rows_city['location_area_id'];
$popular[]=$rows_city['popular'];
}
if(is_array($city_name)){
$city_name=implode('" , "',$city_name);
}
if(is_array($popular)){
$popular=implode('" , "',$popular);
}
if(is_array($location_area_id)){
$location_area_id=implode('" , "',$location_area_id);
}
?>
|