ok
Direktori : /home/keydecors/www/admin/pages/ |
Current File : /home/keydecors/www/admin/pages/getpublisher.php |
<?php include("../model/dboperation.php"); $term=$_GET["term"]; $query="SELECT * FROM prod_details where p_name like '%".$term."%' order by p_id"; $result = $mysqli->query($query); $json=array(); while($student = $result->fetch_assoc()) { $json[]=array( 'value'=> $student["p_name"], 'label'=>$student["p_name"]." - ".$student["cate_gory"] ); } echo json_encode($json); ?>