1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
<?php
require_once("connexionimgindex.inc.php");
$reponse = $bdd->prepare('SELECT categorie,titre,image,description FROM imgindex WHERE categorie="actualité"');
$reponse->execute();
?>
<?php while ($imgindex = $reponse->fetch()) { ?>
<?php echo "<span id='classtext12v'>".htmlspecialchars($imgindex['categorie'])."</span>"; ?>
<br />
<?php echo "<span id='classtext22v'>".htmlspecialchars($imgindex['titre'])."</span>"; ?>
<br />
<img src="images/<?php echo $imgindex['image']; ?>" width="500px" height="350px"/>
</div>
<br />
<div id="descriptionv1">
<?php echo "<span class='classtext31v'>".htmlspecialchars($imgindex['description'])."</span>"; ?>
<? } $reponse->closeCursor(); ?> |
Partager