
PK 
<?php
session_start();
require_once 'common/common.php';
require_once 'common/secure.php';
mysql_connect("localhost","pcfcindi_admin11","myadmin2011");
mysql_select_db("edusoft");
$sql="SELECT * FROM configure";
$result=mysql_query($sql) or die('error');
while($row=mysql_fetch_array($result))
{
?>
<table border="4" width="100%" cellpadding="3" cellspacing="3">
<form action="update_details.php" method="get">
<tr>
<td><strong>Name:</strong></td>
<td><input type="text" name="name" value="<?php echo"{$row['name']}"?>"></td>
</tr>
<tr>
<td><strong>Committee:</strong></td>
<td><input type="text" name="comm" value="<?php echo"{$row['comm']}"?>"></td>
</tr>
<tr>
<td><strong>Address:</strong></td>
<td><input type="text" name="address" value="<?php echo"{$row['address']}"?>"></td>
</tr>
<tr>
<td><strong>Affilited With:</strong></td>
<td><input type="text" name="affiliation" value="<?php echo"{$row['affiliation']}"?>"></td>
</tr>
<tr>
<td><strong>Affiliation No:</strong></td>
<td><input type="text" name="afflno" value="<?php echo"{$row['afflno']}"?>"></td>
</tr>
<tr>
<td><strong>Regestration Date:</strong></td>
<td><input type="text" name="regdat" value="<?php echo"{$row['regdat']}"?>"></td>
</tr>
<tr>
<td><strong>Regestration No:</strong></td>
<td><input type="text" name="regdno" value="<?php echo"{$row['regdno']}"?>"></td>
</tr>
<tr>
<td><strong>Type:</strong></td>
<td>
<select name="type">
<option value="girls">Girls</option>
<option value="boys">Boys</option>
<option value="coadd">Coadd</option>
</select>
</td>
</tr>
<tr>
<td><strong>Boarding:</strong></td>
<td>
<select name="brdtype">
<option value="day">Day</option>
<option value="full">Full</option>
</select>
</td>
</tr>
<tr>
<td><strong>Phone1:</strong></td>
<td><input type="text" name="phone1" value="<?php echo"{$row['phone1']}"?>"></td>
</tr>
<tr>
<td><strong>Phone2:</strong></td>
<td><input type="text" name="phone2" value="<?php echo"{$row['phone2']}"?>"></td>
</tr>
<tr>
<td><strong>Fax:</strong></td>
<td><input type="text" name="fax" value="<?php echo"{$row['fax']}"?>"></td>
</tr>
<tr>
<td><strong>Email:</strong></td>
<td><input type="text" name="email" value="<?php echo"{$row['email']}"?>"></td>
</tr>
<tr>
<td><strong>Website:</strong></td>
<td><input type="text" name="wsite" value="<?php echo"{$row['wsite']}"?>"></td>
</tr>
<tr>
<td align="center" colspan="2"><input type="submit" value="Update"></td>
</tr>
</form>
</table>
<?php
}
?>


PK 99