Path : /var/www/html/smart_kpp2_bk17 มีค 69/modules/spacial_student/
File Upload :
Current File : /var/www/html/smart_kpp2_bk17 มีค 69/modules/spacial_student/livesearch.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=spacial_student&task=student_sch_disable_report2&school=$school_code>$school_name</a>"."<br />";
}
echo $response;
?>