
PK 
<?php
include("connexion.php");
include("head.php");
?>
<table width="100%"><tr><td class="white">
<img src="checkmark.png" align="middle"> Below are the existing accounts with their logins categorized as active and suspended logins.
</td></tr></table>
<p align="right"><a href="addalogin.php">+Add New Account</a></p>
<strong>Active Accounts:</strong>
<table border="4" width="100%">
<tr>
<td align="center"><strong>Name</strong></td>
<td align="center"><strong>Username</strong></td>
<td align="center"><strong>Edit account</strong></td>
</tr>
<?php
$sql="SELECT * FROM amembs";
$result=mysql_query($sql) or die('error');
if
(mysql_num_rows($result) == 0) {
echo "<tr><td align=center class=semitit colspan=5><br>No Active Acount found in your school, please Add an Account first.<br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{ echo"<tr><td>{$row['name']}</td><td>{$row['user']}</td>
<td align=center><a href=updatelogin.php?id={$row['id']}>Update</a></td>
</tr>";}
?>
</table>
<?php
include("foot.php");
?>


PK 99