0% found this document useful (0 votes)
30 views1 page

New Text Document

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views1 page

New Text Document

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

<html>

<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>

<table border="1" align="center" width="85%">


<tr height="50" bgcolor="silver" >
<th>width="40">No</th>
<th>width ="40">Nama Custummer</th>
<th>width ="400">Alamat</th>
<th>Telp/Hp</th>
<th>width ="110">Email</th>
<th width="143">Pilih</th>

</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>

You might also like