[Tableaux] positionner horizontallement des tableaux
bonjour à tous!!
j'aimerais pouvoir aligner horizontalement et par 3, des tableaux issus d'une BDD mais je ne sais pas comment faire
au lieu de ça, mes tableaux s'affichent les uns après les autres de manière verticale sur ma page
voici le code :
Code:
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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
|
<?
echo "
<center>ordinateur|imprimante</center>";
//<HR width=100%>
echo"<center>";
include ("definitioninfo.php");
session_start();
$base=mysql_connect("localhost","root","oui");
mysql_select_db("bd", $base);
$max = "SELECT max(id_cli) FROM client";
$quermax = mysql_query($max);
$femax = mysql_fetch_array($quermax);
$id_max = $femax[0] +1;
$_SESSION['id_client'] = $femax[0] +1;
echo $_SESSION['id_client']."Identifiant client";
$sql = "SELECT image, ref_produit, designation_produit, prix_produit FROM produit WHERE type_produit = 'ordinateur de bureau'";
$m = mysql_query($sql);
while ($fe = mysql_fetch_array($m))
{
echo" <table border = '1'>";
echo "<form method = 'POST' action = detail.php>";
extract($fe);
echo"
<br<<br><br> ";
$desi = $fe[2];
echo "<tr><td>
<input type = hidden name = 'ref' value = \"".$fe[1]."\">
<input type = hidden name = 'article' value = \"".$desi."\">
<a href= \"#\" onclick= ImageMax(\"http://127.0.0.1/oceanecoin/PHOTOSITEINFO/",$image,"\");>
<img src= http://127.0.0.1/oceanecoin/PHOTOSITEINFO/",$image," width=\"213\" height=\"180\" border=\"0\" hspace=\"40\" Hspace=10 ></a>";
echo"<p><center>".$fe[2]."</p>
<p><font color = red><b>".$fe[3]."</font></b></p>
<input type = submit value = detail name = detail>
</td></tr>";
echo" </table>";
echo"</form>";
}
echo"<br>
</html> ";
?> |
donc voilà si quelqu'un a une ptite idée...