SHARE
TWEET

Untitled

Rofihimam Nov 5th, 2019 82 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.     include 'lib/library.php';
  3.  
  4.     $sql = 'SELECT * FROM siswa';
  5.  
  6.     // Searching
  7.     $search = @$_GET['search'];
  8.     $category = @$_GET['category'];
  9.     if (!empty($search)) $sql .= " WHERE $category LIKE '%$search%' ";
  10.  
  11.     $listSiswa = $mysqli->query($sql);
  12.  
  13.     include 'views/v_index.php';
  14. ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top