salut
je rencontre un problème pour modifier un enregitrement voila le coude de la suppression sa marche bien
<?php
mysql_connect("localhost","root","") or die("erreur");
mysql_select_db("imsimobi") or die("erreur");
if($_REQUEST["id"])
{
$sql="delete from achat where reference=".$_REQUEST["id"];
mysql_query($sql);
}
$sql="select * from achat";
$qur=mysql_query($sql);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Document sans nom</title>
</head>
<body>
<table width="90%" border="0">
<tr>
<td width="15%" bgcolor="#CCCCCC">type</td>
<td width="16%" bgcolor="#CCCCCC">ville</td>
<td width="11%" bgcolor="#CCCCCC">prix</td>
<td width="13%" bgcolor="#CCCCCC">titre</td>
<td width="18%" bgcolor="#CCCCCC">presentation</td>
<td width="14%" bgcolor="#CCCCCC">description</td>
<td width="13%" bgcolor="#CCCCCC"> </td>
</tr>
<?php
while($res=mysql_fetch_array($qur))
{
?>
<tr>
<td><?php echo $res["type"]; ?></td>
<td><?php echo $res["ville"]; ?></td>
<td><?php echo $res["prix"]; ?></td>
<td><?php echo $res["titre"]; ?></td>
<td><?php echo $res["presentation"]; ?></td>
<td><?php echo $res["description"]; ?></td>
<td><a href="supachat.php?id=<?php echo $res["reference"]; ?>">Supprimer</a></td>
</tr>
<?php
}
?>
</table>
<br />
</body>
</html>