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
| <!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> <center>
<?php
try
{
// acces a la base de données
$bdd = new PDO('mysql:host=sql-frweb10.pulseheberg.net:3306;dbname=champard_tarot;charset=utf8', 'champ_pascal', 'xxxxxxxx');
}
catch (Exception $e)
{
die('Erreur : ' . $e->getMessage());
}
$reponse = $bdd->query('SELECT nom, championnat, lieu, date, equipe, DAY(date) AS jour, MONTH(date) AS mois, YEAR(date) AS annee FROM qualifies ORDER BY date , equipe');
while ($donnees = $reponse->fetch())
{
?>
<h3><em><?php echo $donnees['jour']; ?>-<?php echo $donnees['mois']; ?>-<?php echo $donnees['annee']; ?> <?php echo $donnees['championnat']; ?> <?php echo $donnees['lieu']; ?></em></h3>
<h6><?php echo $donnees['equipe']; ?></h6><h3> <strong><?php echo $donnees['nom']; ?></strong></h3>
<?php
}
$reponse->closeCursor();
?>
</section>
</body>
<?php include ($_SERVER["DOCUMENT_ROOT"].'/footer.php'); ?>
</html> |
Partager