Path : /var/www/html/smart_kpp2_bk17 มีค 69/modules/person/
File Upload :
Current File : /var/www/html/smart_kpp2_bk17 มีค 69/modules/person/livesearch_4.php

<?php
require_once("../../amssplus_connect.php");
$q=$_GET["q"];
$response="";

$sql = "select school_code,school_name from system_school where school_name like '%$q%' limit 5";
$dbquery = mysqli_query($connect,$sql);
while($result = mysqli_fetch_array($dbquery)){
	$school_code = $result['school_code'];
	$school_name = $result['school_name'];
	$response=$response."<a href=?option=person&task=change_status_person_sch&school_code=$school_code&index=9>$school_name</a>"."<br />";
}
echo $response;
?>