PK

ADDRLIN : /home/anibklip/vpgldh.com/2022-23/webmanager/
FLL :
Current File : /home/anibklip/vpgldh.com/2022-23/webmanager/subcledit.php

<?php
include("connexion.php");
include "head.php";

$sql="SELECT * FROM clients WHERE subid ='$_GET[id]'";
$result=mysql_query($sql) or die('error');
while($row=mysql_fetch_array($result))
 {
$subid="{$row['subid']}";
$subname="{$row['subname']}";
$subperson="{$row['subperson']}";
$subphone="{$row['subphone']}";
$clntid="{$row['clntid']}";
$subaddress="{$row['subaddress']}";
$status="{$row['status']}";
 ?>
<strong>Update the followings:</strong>
<table cellspacing="3" align="center" width="100%" border="4" cellpadding="3">
<form action="subclntupdated.php" method="get">
<input type="hidden" name="id" value="<?php echo "$subid" ?>">
<input type="hidden" name="subname" value="<?php echo "$subname" ?>">
<input  type="hidden" name="subperson" value="<?php echo "$subperson" ?>">

<tr>
<td valign="top"><strong>Company Name</strong>:</td><td><?php echo"$subname"; ?></td>
</tr>
<tr><td><strong>Address</strong>:</td><td><textarea rows="4" cols="25" name="subaddress"><?php echo"$subaddress"; ?></textarea></td></tr>

<td valign="top"><strong>Contact Person</strong>:</td><td><?php echo"$subperson"; ?></td>
</tr>
<tr>
<td valign="top"><strong>Phone</strong>:</td><td><input type="text" name="subphone" size="33" value="<?php echo"$subphone"; ?>"></td>
</tr>
<?
if($status=='active')
{
?>
<tr><td>status:</td><td>Active&nbsp;<input type='radio' name='status' checked='checked' value='active'>&nbsp;&nbsp;&nbsp;&nbsp;In-Active&nbsp;<input type='radio' name='status' value='inactive'></td></tr>
<?
}
else
{
?>
<tr><td>status:</td><td>Active&nbsp;<input type='radio' name='status'  value='active'>&nbsp;&nbsp;&nbsp;&nbsp;In-Active&nbsp;<input type='radio' name='status' checked='checked' value='inactive'></td></tr>
<?
}
?>
<tr><td align="center" colspan="2"><br><center><input type="submit" value="Update Sub Client Details"  class="amo-submit"></center></td></tr>

</form>
</table>	
<?php
}
include "foot.php";
?>


PK 99