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
|
<div class="arrondi">
<div id="corps">
<?php
try
{
$bdd = new PDO('mysql:host=localhost;dbname=rapport', 'root', '');
}
catch(Exception $e)
{
die('Erreur : '.$e->getMessage());
}
$reponse = $bdd->query('SELECT * FROM rapport');
while ($donnees = $reponse->fetch())
{
if ($donnees['auteur'] == "1")
{
<HR size=3 >
<h4>
<?php echo nl2br($donnees['resume']);?>
</h4>
<HR size=3 >
<h3><?php include "dir_files.php"; ?></h3>
<?php
}
}
$reponse->closeCursor();
?>
</div>
</div> |
Partager