Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Contoh Penggunaan MySQL Extension
- * @author Pusat Ilmu Secara Detil
- * @version 1.0
- */
- mysql_connect("localhost", "root", "");
- mysql_select_db("mahasiswa");
- /*** Query Select ***/
- $query = mysql_query("select * from mhs");
- while($mhs = mysql_fetch_array($query))
- {
- print $mhs['nim'] .' - '. $mhs['nama'] .' - '.$mhs['alamat']. '<br />';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement