Script untuk menampilkan cetak print
Ini adalah contoh script cara menampilkan data agar bisa di cetak ataupun di simpan dalam bentuk PDF <!DOCTYPE html> <html> <head> <title>DATA LAPORAN </title> </head> <body> <center> <h2>DATA LAPORAN </h2> <h4>SMK HASAN KAFRAWI</h4> </center> <?php include 'koneksi.php'; ?> <table border="1" style="width: 100%"> <tr> <th width="3%">No</th> <th width="15%">Nama</th> <th width="15%">Tanggal Lahir</th> <th width="20%">Alamat</th> <th width="15">Pekerjaan</th> <th width="15%">No HP</th> <th width="15%">Email</th> </tr> <?php include "koneksi.php"; $no = 1; $sql=mysql_query("select * from user");