Diaporama Javascript php (BDD MySQL)
Bonjour � tous et � toutes,
Suite � plusieurs recherches sur google, je n'ai pas trouv� mon bonheur :(.
J'aurais voulu cr�er un diaporama automatique, m'affichant des informations provenant d'une base de donn�e.
je ne sais pas par ou commencer �tant n�ophyte dans le langage javascript...
voici mon code actuelle :
Code:
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(); ?> |
Merci pour votre int�ret � mon probl�me.
Sinc�rement.