1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
| <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="../style.css" />
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<title>le tarot en champagne-ardenne</title>
<meta name="description" content="le tarot en champagne ardenne , les competitions, les resultats, le calendrier." />
</head>
<body>
<?php include ($_SERVER["DOCUMENT_ROOT"].'/entete.php'); ?>
<section>
<aside>
<div id="conteneur">
<?php
try
{
// acces a la base de données
$bdd = new PDO('mysql:host=sql-frweb10.pulseheberg.net:3306;dbname=champard_tarot;charset=utf8', 'xxx', 'xxx');
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$reponse = $bdd->query('SELECT nom FROM champions ORDER BY nom');
while ($donnees = $reponse->fetch())
{
?>
<img src="../images/<?php echo $donnees['nom']; ?>" alt="1" width="175" height="99"/>
<?php
}
$reponse->closeCursor();
?>
</div>
</aside>
<img src="../images/tarot_31.jpg" alt="Image flottante" width="700" height="395" /><br/>
</section>
<?php include ($_SERVER["DOCUMENT_ROOT"].'/footer.php'); ?>
</body>
</html> |
Partager