MINI SHELL

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 :  /home/pathumthani_integration/pathumthani_drug/ajax/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //home/pathumthani_integration/pathumthani_drug/ajax/ajax.chgamphur.php
<?php	
	header("Content-Type: text/html; charset=windows-874"); //แก้ไขปัญหาการดึงข้อมูลภาษาไทยออกมาเป็น '????€$234'
	include("config.joomla.php");	
	
	$keyword = substr($_GET['PvID'], 0, 2);
		$sql = "SELECT ccDigi,ccName,ccType FROM ccaa WHERE ccType='Aumpur'  AND ccDigi like '$keyword%' ";
	if ( $_GET['PvID'] ) {
		echo "<select name=\"addr_amphur\" id=\"addr_amphur\" onchange=\"chgTambon(this.value);\">";
		echo "<option value=\"\">เลือกอำเภอ</option>";		
		$am = mysql_query($sql);
		while( $ram = mysql_fetch_array($am) ) {
		echo "<option value=\"".$ram['ccDigi']."\" >".$ram['ccName']."</option>\n";
		}
		
		echo "</select>";
	}
?>

Anon7 - 2021