PK

ADDRLIN : /home/anibklip/pcfcindia.com/bkp17/superadmin/
FLL :
Current File : /home/anibklip/pcfcindia.com/bkp17/superadmin/add_sig_update.php

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

?>
   
<table width="100%" border="4" cellpadding="8" cellspacing="1">
<?php
$id=$_GET['id'];
$sql="SELECT * FROM signature WHERE id='$id'";
$result=mysql_query($sql) or die ('error');
while($row=mysql_fetch_array($result))
{
?>

<form action="update_sig.php" method="post">
<input type="hidden" name="id" value="<?php echo"{$row['id']}";?>">


<tr>
<td><strong>Staff:</strong>
<?php	 
			$quer=mysql_query("SELECT * FROM amembs   order by name");
			echo "<select name='staff'><option value=''>Select one</option>";
			while($noticia = mysql_fetch_array($quer)) 
			{ 
				if($row['user_id']==$noticia['id'])
				{
				
				echo  "<option selected='selected' value='$noticia[id]'>$noticia[name]</option>";
				}
				else
				{
				echo  "<option value='$noticia[id]'>$noticia[name]</option>";
				}
			}
				echo "</select>"; ?>
</td>
</tr>

<tr>
	  <td><strong>Name:</strong> 
        <input type="text" name="name" value="<?php echo"{$row['name']}";?>"></td>
	
</tr>



<tr>
	<td><strong>Code : </strong>
	<input type="text" name="code" value="<?php echo"{$row['code']}";?>"></td>
	  
</tr>
<tr>
	<td><strong>Year : </strong>
	<input type="text" name="year" value="<?php echo"{$row['year']}";?>"></td>
	  
</tr>
<tr>
	<td><strong>Code1 : </strong>
	<input type="text" name="code1" value="<?php echo"{$row['code1']}";?>"></td>
	  
</tr>

<tr>
<td align="center" colspan="2"><input type="submit" value="update this city"></td>
</tr>
</td></tr>
</form>
</table>
</div>
</div>
<?php
}
include("foot.php");
?>


PK 99