1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| <?php
$affiche = "SELECT id,date,nom,contenu,position FROM modules ORDER BY date";
$exec = mysqli_query($connexion,$affiche) or die ("Impossible de sélectionner les modules");
while($ligne=mysqli_fetch_assoc($exec))
{
$contenu = $ligne["contenu"];
$contenu = eregi_replace("<p[^>.]*>","",$contenu);
$contenu = eregi_replace("</p[^>.]*>","",$contenu);
echo '<tr align="center">
<td><input type="radio" name="choix-modif" value="'.$ligne["id"].'"/></td>
<td><a href="update_module.php?id='.$ligne["id"].'" target="_self" title="Modifier">'.$ligne["nom"].'</a></td>
<td>'.$contenu.'</td>
<td>'.$ligne["position"].'</td>
<td>'.date("d/m/Y",strtotime($ligne["date"])).'</td>
</tr>
';
}
?> |
Partager