Advertisement
Bedhoel

ajax.php (model)

Jul 21st, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.28 KB | None | 0 0
  1. <?php
  2. class ajax {
  3.     function getDataUser($query){
  4.           global $db;
  5.           $sql = "SELECT  * from user where nama_lengkap like '%".$query."%'" ;
  6.           $rs  = $db->Execute($sql);
  7.           if(!$rs) {
  8.             return $db->ErrorMsg();
  9.           }
  10.           else {
  11.             return $rs;
  12.           }
  13.     }
  14. }
  15. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement