
PK 
<?php
session_start();
require_once 'common/common.php';
require_once 'common/secure.php';
include("connexion.php");
include "head.php";
?>
<table width="100%">
<tr>
<td align="right"><a href="addsubclnt.php">+ Add a new Client</a> <br>
</td>
</tr>
</table>
<table width="100%" border="1">
<tr>
<td><strong>NAME</strong></td>
<td><strong>ADDRESS</strong></td>
<td><strong>PHONE</strong></td>
<td><strong>Contact Person</strong></td>
<td><strong>Edit</strong></td>
</tr>
<?php
$sql="SELECT * FROM clients";
$result=mysql_query($sql) or die('error');
if (mysql_num_rows($result) == 0)
{
echo "<tr><td colspan=6 align=center><center><font color=red><strong><br>No Client/records Found</strong>, please add an account first.</font></center><br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{
echo"<tr>
<td>{$row['subname']}</td> <td>{$row['subaddress']}</td> <td>{$row['subphone']}</td> <td>{$row['subperson']}</td>
<td><a href=subcledit.php?id={$row['subid']}>EDIT</a></td> </tr>";
}
?>
</table>
<br><br>
<?php
include "foot.php";
?>


PK 99