$http = "http://".$_SERVER['HTTP_HOST']; $province_id = $_GET[province_id]; @require_once("connect_dbcz.php"); $query_one = "SELECT * FROM cz_detail WHERE czd_province='$province_id' order by czd_id desc"; $return_one = mysql_db_query($dbname,$query_one); $total = mysql_num_rows($return_one); $p = $_GET[p]; if($p == "") { $p = 1; } $count = 30; $tp = ceil($total/$count); $begin = ($p-1) * $count; $i=1; $query_one = "SELECT * FROM cz_detail WHERE czd_province='$province_id' order by czd_id desc limit $begin,$count"; $return_one = mysql_db_query($dbname,$query_one); $ro = mysql_fetch_array($return_one); $checkProvince = "SELECT * FROM cz_province WHERE czp_id='$province_id'"; $query_p = mysql_db_query($dbname,$checkProvince); $rp = mysql_fetch_array($query_p); $zone_id = $rp[czp_zone]; ?>
|
||||
|