Bsr
voila j’ai un petit souci car je voudrai affiche un tableau bien structurer
ex:
date libelle debit credit
01/01/01 virement 25
MAI au lieu d’avoir sa kan jouvre le tableau j’ai toute les operations ki se retrouvent sous la date ;
voic mon code;
(…)
$tableOperation=“opt”.$_SESSION[‘COMPTE’] ; //.$_SESSION[‘compte’];
$commande = “select * from opt “;
$resultat = mysql_query ($commande, $connexionBD); //envoie une requete
if (!$resultat){
print (”<font color= ‘red’> erreur select operation<b>”.BD."</b></font><br>");
exit;
}
print (“monsieur <b>”.strtoupper($_SESSION [‘nom’])."</b>");
print("-compte <b>".$_SESSION[‘compte’]."</b>");
print ("<p><b> dernieres operations :</b><p>");
print ("<table border =4 cellpadding=6 cellspacing=7>");
print("<tr><td>date<td>libelle</td><td>credit<td>debit</td></tr>");
while ($infooperations= mysql_fetch_object($resultat))//renvoie un objet ,la ligne demandée dans le résultat result .
{
print("<tr><td>$infooperations->date</td>");
print("<tr><td>$infooperations->libelle</td>");
print("<tr><td>$infooperations->credit</td>");
print("<tr><td>$infooperations->debit</td>");
print("</table>");
print("<p><form action=login.php method = POST>");
print("<input type = submit name= retour value = retour>");
print("<input type = submit name = fin value =sortie>");
print ("</form>");
}
?>
merci bien de votre aide