
PK 
<?php
include("connexion.php");
include("head.php");
?>
<table width="100%" border="4" cellpadding="8" cellspacing="1">
<?php
$id=$_GET['id'];
$sql="SELECT * FROM city WHERE id='$id'";
$result=mysql_query($sql) or die ('error');
while($row=mysql_fetch_array($result))
{
?>
<form action="update_city.php" method="post">
<input type="hidden" name="id" value="<?php echo"{$row['id']}";?>">
<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 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