New Text Document
New Text Document
<head>
<title>Custommer</title>
</head>
<body>
<table width="97%">
<tr>
<td><fieldset><legend align="center"style='color:#0b69d2;font:18px
cambria,verdana,sans-serif;font-weight:bold;'>DATA CUSTUMMER
</legend>
</tr>
<?php
$batas = 4;
$halaman =$_GET['halaman'];
$posisi=null;
if(empty($halaman)){
$posisi=0;
$halaman=1;}else{$posisi=($halaman-1)*$batas;}
$query="select*from custummer order by by id_cust asc limit
$posisi,$batas";
$result=mysql_query($query) or die(mysql_error());
$no=1;
while($rows=mysql_fetch_object($result)){
?>{
<tr>
<td align="center"><?php echo $rows->['id_cust;?></td>
<td><?php echo $rows->['nama_customer']; ?></td>
<td><?php echo $rows->['alamat']; ?></td>
<td><?php echo $rows->['telp']; ?></td>
<td><?php echo $rows->['email']; ?></td>
</tr>
<?php
$no++;
}
?>
</table>
</fieldset>
</td>
</tr>
</table>
</body>
</html>