|
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_eoffice/application/CA/ |
Upload File : |
<?php
header("Content-Type: text/plain; charset=windows-874");
include "../../config/config.inc.php";
$sql_select= "SELECT * FROM department_lbl WHERE pv_code = '$ministry_id' ORDER BY name ASC";
$result= mysql_db_query($dbname, $sql_select )or die(mysql_error());
while ($result1= mysql_fetch_assoc($result)){
$name = "$result1[name]";
echo $name."::".$result1[dev_id].",";
}//end while
// ปิดการเชื่อมต่อ
mysql_close();
?>