le 05/04/2004 à 20:04
Petit Prob
Essaye ca:
<?php
mysql_connect("localhost", "toutdroit", "");
mysql_select_db("news");
$reponse = mysql_query("SELECT * FROM news");
?>
<?php
while ($donnees = mysql_fetch_array($reponse) )
{
?>
<form action="trait_news.php" method="post">
<table width="100%" border="1" bgcolor="#ffffcc">
<tr>
<td width="26%"><div align="center"> <?php echo($donnees['titre']); ?> </div></td>
<td width="31%" align="center"> <?php echo($donnees['auteur']); ?> </td>
<td width="18%"><div align="center"> <?php echo($donnees['date']); ?> </div></td>
<td align="center"><input type="checkbox" name="id" value=" <?php echo($donnees['id']); ?> "></td>
<td><input type="submit" name="editer" value="editer"></td>
<td><input type="submit" name="supprimer" value="supprimer"></td>
</tr>
</table>
<br>
<?php
}
mysql_close();
?>