Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include 'lib/library.php';
- $sql = 'SELECT * FROM siswa';
- // Searching
- $search = @$_GET['search'];
- $category = @$_GET['category'];
- if (!empty($search)) $sql .= " WHERE $category LIKE '%$search%' ";
- $listSiswa = $mysqli->query($sql);
- include 'views/v_index.php';
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement