- <?php
- mysql_connect("localhost","root","") or die(mysql_error());
- mysql_select_db("sonisitez") or die(mysql_error());
- $result = mysql_query("SELECT * FROM inos")
- or die(mysql_error());
- //menyimpan record dari tabel kedalam variabel $data
- $record = mysql_fetch_array($result);
- //menampilkan data dari $record untk setiap field
- echo "Namanya : ".$record['nama']. "<br/>";
- echo "Umurnya : ".$record['umur'];
- ?>
Ditulis Oleh : Anonymous ~ i-SkyNet News

0 comments:
Post a Comment