PK

ADDRLIN : /home/anibklip/ulpc.in/gst2018/
FLL :
Current File : //home/anibklip/ulpc.in/gst2018/accout.php

<?php
	session_start();
	require_once 'common/common.php';
	require_once 'common/secure.php';
include("connexion.php");
?>
<table width="100%"><tr><td class="white">
<img src="img/manaccicon.gif" align="middle">&nbsp;&nbsp;Below are the existing accounts with their logins categorized as active and suspended logins.
</td></tr>
<tr><td align="right"><a href="#.php">+ Add a new Account</a> <br></td></tr>
</table>
<table cellspacing="3" align="center" width="100%" border="4" cellpadding="3">
<tr>
  <td><strong>NAME</strong></td>
  <td><strong>ADDRESS</strong></td>
  <td><strong>Description</strong></td>
  <td><strong>PHONE</strong></td>
  <td><strong>EDIT</strong></td>
</tr>
<?php
$sql="SELECT * FROM head WHERE headid>0";
$result=mysql_query($sql) or die('error');
if (mysql_num_rows($result) == 0)
{
echo "<tr><td colspan=6 align=center><font color=red><strong><br>No Account/records Found</strong>, please add an account first.</font><br><br></td></tr>";
}
while($row=mysql_fetch_array($result))
{
	echo"<tr>
	  <td>{$row['headname']}</td>       <td>{$row['headaddress']}</td>     <td>{$row['headdecp']}</td>  <td>{$row['headphone']}</td>     <td><a href=accedit.php?id={$row['headid']}>EDIT</a></td></tr>";
}
?>
</table>



PK 99