1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<?PHP
// Connexion à la base de données
$sql = mysql_connect('sql7','bonbon','azerty')or die("Impossible de se connecter : " . mysql_error());
mysql_select_db('bonbon?toto3',$sql) or die('Could not select database.');
$Resultat = mysql_query('SELECT che, date, hipo, temps_g FROM recup_t ORDER BY che, date DESC');
echo "<CENTER>";
echo '<p align="center"><u><b><font size="5" color="#003300">Liste des Chevaux</font></b></u></p>';
echo '<div class="aff1" style="height:300px; width:520px; overflow:auto; font-family: Times New Roman; font-size: 10px;">';
echo '</CENTER>';
echo '<table border="3" bordercolor="#003300" style="border-collapse:collapse; font-family:Times New Roman; font-size:10px;">';
while ($row=mysql_fetch_array($Resultat))
{
echo "<tr>";
echo "<td>".trim($row['che'])."</td>";
echo "<td>".changedateusfr($row['date'])."</td>";
echo "<td>".$row['hipo']."</td>";
echo "<td>".$row['temps_g']."</td>";
echo "</tr>";
}
echo '</table>';
echo '</div>';
?> |
Partager