<?php
include "connect.php";
?>
<table border=1>
<tr>
<td>Nim</td>
<td>Nama</td>
<td>Alamat</td>
</tr>
<?php
$sql = "select * from mahasiswa";
$executequery = mysql_query($sql);
$data= array();
while($data=mysql_fetch_array($executequery))
{
print "<br>";
print $data['alamat'];
print"</br>";
}
?>
include "connect.php";
?>
<table border=1>
<tr>
<td>Nim</td>
<td>Nama</td>
<td>Alamat</td>
</tr>
<?php
$sql = "select * from mahasiswa";
$executequery = mysql_query($sql);
$data= array();
while($data=mysql_fetch_array($executequery))
{
print "<br>";
print $data['alamat'];
print"</br>";
}
?>