Php Data View
<?php
$db= ('rumah');
$con= mysql_connect('localhost','root','');
mysql_select_db($db,$con) or die (mysql_error());
$q = mysql_query("Select * from");
?>
<h2><strong><p align="center">Data Anggota Keluarga</p></strong></h2>
<table border="2" width="100%">
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
<?php
while($rp = mysql_fetch_array(&q)) {
echo "<tr>";
echo "<td>".$row['no_anggota']."</td>";
echo "<td>".$row['nama']."</td>";
echo "<td>".$row['alamt']."</td>";
echo "<td>
<a href='edit'>Edit</a>
||
<a href='hapus'>Hapus</a>
</td>";
echo "</tr>";
}
?>
0 komentar:
Posting Komentar