positionnement des reponses par mysql_fetch_array
Posté : 01 janv. 2008, 20:04
Comment puis je positionner les tableaux qui vont sortir de mes reponses avec cette fonction?
voici mon code
voici mon code
if($_POST['prixmini'] == "40000" and $_POST['prixmaxi'] == "80000") // prix compris entre 40 000 et 80 000€
{
$reponse = mysql_query("SELECT id, type, prix, descriptif, lien, fond FROM bdd WHERE prix >= 40000 AND prix <= 80000 ORDER BY prix"); // Requête SQL
while ($donnees = mysql_fetch_array($reponse) )
{
?>
<tr>
<td colspan="2" style="position:absolute; left:230px; top:200px; z-index:2"><table width="700" height="300" border="2" cellpadding="0" cellspacing="0" <?php echo '<body background="image page/'.$donnees['fond'].'">'; ?>>
<tr>
<td width="50" height="40">n°</td>
<td width="100" height="40">exclu/agence/vendu</td>
<td width="50" height="40">coup coeur</td>
<td width="50" height="40">réf: <?php echo $donnees['id']; ?></td>
<td width="300" height="40">désignation:<?php echo $donnees['descriptif']; ?></td>
<td width="150" height="40">Prix:<?php echo $donnees['prix']; ?>€</td>
</tr>
<tr>
<td colspan="4"><?php echo '<img src="image/'.$donnees['lien'].'">';?></td>
<td colspan="2"><?php echo $donnees['descriptif']; ?></td>
</tr>
<tr>
<td height="30" colspan="4">En savoir plus</td>
<td height="30" colspan="2"> </td>
</tr>
</table>