Dasar Query select * from siswa where tgl_lulus between 'Tanggal awal' and 'Tanggal Akhir'; Dabtabase : smk Tabel : siswa 1. Database dan tabel 2. Source Program Nama File : config.php <?php $servername = "localhost"; $username = "root"; $password = ""; // jika tidak ada user dan password $dbase = "smk"; //nama database kalian // koneksi database $conn = mysqli($servername, $username, $password,$dbase); // cek koneksi database if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } ?> Nama File : cari.php <html> <head> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/jquery-1.12.4.js"></script> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></scrip...
Komentar
Posting Komentar