stupid link showed above<

liunx

Guest
Why my link retour(in bold) is showed above the table?


<?php

if ($Section != "All")
{
$QueryTarif = "SELECT * FROM tarifs WHERE Section=\"".$Section."\"";
}
else
{
$QueryTarif = "SELECT * FROM tarifs";
}

$result = mysql_query($QueryTarif,$db);
$PrevSection = "";
$boResult = 0;

//d闁弆aration du tableau
echo "<table border=\"1\" align=\"center\">";

while ($myrow = mysql_fetch_array($result))
{

if ($PrevSection != $myrow["Section"])
{
echo "<tr><td colspan=\"3\" align=\"center\">";
printf("%s",$myrow["Section"]);
$PrevSection = $myrow["Section"];
$boResult = 1;
echo "</td></tr>";
}
printf("<tr><td>%s</td><td>%s$</td><td>%s</td>",$myrow["Age"],$myrow["Prix"],$myrow["Description"]);
}

if($boResult == 0)
{
echo "<tr><td align=\"center\">Aucuns tarifs disponible pour l'instant</td></tr>";
}

//<!--Retour au root-->
echo "<p align=\"center\" class=\"Retour\"><a href=http://www.htmlforums.com/archive/index.php/\"Plan.html\" class=\"style5\">Retour</a></p>";

?>What is class="Retour" ? Meaning what css is associated with it?This from an external file


p.Retour{ font-size: 24px; }cause you don't have it in the table. you clsoed </tr> in this line


echo "<tr><td align=\"center\">Aucuns tarifs disponible pour l'instant</td></tr>";I you want it below the table you need to close the table just before it.Scout, I don't want it in the table, I want it below.

And I just noticed that this is the cause of my problem(can't test it until tomorrow)Yeah, that was the problem(didn't close the table)
 
Back
Top