Salut
je suis arriver a afficher via ce code phph mais maintenant je veut afficher ma table et que chaque ligne du tableau ait une couleur mais j'ai pas su comment le faire svp ? Merci pour votre aide
mon code:
<span class="blanc">
<?php
include("connex.inc.php");
$idcom=connex("basebank","myparam");
$requete="SELECT * FROM planning order by matricule";
$result=@mysql_query($requete,$idcom);
if(!$result)
{
echo "Lecture impossible";
}
else
{
$nbcol=mysql_num_fields($result);
$nbcand=mysql_num_rows($result);
echo "<h5> Il y a $nbcand employé(s) présent aujourd'hui </h5> <br> ";
echo "<table border=\"1\">" ;
echo "<th>Matricule</th> <th>Nom</th> <th>Prénom</th> <th>Tâche</th> <th>Date retour</th> <th>Date retour</th> " ;
while($ligne=mysql_fetch_array($result,MYSQL_NUM))
{
echo "<tr>";
foreach($ligne as $valeur)
{
echo "<td> $valeur </td>";
}
echo "</tr>";
}
echo "</table>";
}
?>
</span>Configuration: Windows Vista
Firefox 3.0.10