- Get link
- X
- Other Apps
config.php <?php $link = mysql_connect('localhost','root','password'); if (!$link){ die('Not connected : '.mysql_error()); } if (!mysql_select_db('12RPLB2012')){ die('Can\'t use dataase :'.mysql_error()); } ?> siswa.php <link rel="stylesheet" type="text/css" href="style.css"/> <?php include "config.php"; $sql = "select * from cibatok order by nis desc"; $result = mysql_query($sql); $no=1; ?> <h2>Daftar Siswa</h2> <table border=1 width="100%" cellpadding="5" cellspacing="0" class="tbg"> <tr> <th>No.</th> <th>NIS</th> <th>Nama Siswa</th> <th>Jenis Kelamin</th> <th>Tempat Lahir</th> <th>Tanggal Lahir</th> <th>Alamat</th> <th>Telepon</th> <th colspan="2"...