|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /var/www/html/pathumthani_vc/inc/ |
Upload File : |
<?
// =============================== Catate By char 11/21/2004 22.00
function show_pop($areaid1,$yy1,$sex1){
include ("conndb.inc.php") ;
$ampid1 = $prov_id . $areaid1 ;
$sql00 = "select * from amp_population where yy= $yy1 and ampid = $ampid1 " ;
$query_result00=mysql_db_query($dbname,$sql00);
$result00=mysql_fetch_array($query_result00) ;
//echo "$sql00";
if ($sex1 == "m"){ return $result00[male_nm] ; }
if ($sex1 == "f"){ return $result00[fmale_nm] ; }
if ($sex1 == "a"){ return $result00[total_nm] ; }
}
// =============================== Catate By char 11/21/2004 22.00
function show_timeupdate($areaid1,$yy1){
include ("conndb.inc.php") ;
$ampid1 = $prov_id . $areaid1 ;
$sql00 = "select * from amp_population where yy= $yy1 and ampid = $ampid1 " ;
$query_result00=mysql_db_query($dbname,$sql00);
$result00=mysql_fetch_array($query_result00) ;
//echo "$sql00";
return $result00[timeupdate] ;
}
?>