Bonjour,
Ci dessous je vous met ma page ou se trouve mes while
Mon souci avec cette méthode j'ai un affichage de tableau sans ligne.
Ma question que dois je faire pour afficher un résultat dans une seule case?
Merci
CODE:
<?php
$query = "SELECT * FROM infos ORDER BY 'numcmd'";
$result = mysql_query($query, $link) or die($query . " - " . mysql_error());
while ($tab = mysql_fetch_array($result)) {
echo $tab['datesaisie'];
echo "
";
}
?>
</td>
<td width="80" height="24">
<?php
$query = "SELECT * FROM infos ORDER BY 'numcmd'";
$result = mysql_query($query, $link) or die($query . " - " . mysql_error());
while ($tab = mysql_fetch_array($result)) {
echo $tab['numcmd'];
echo "
";
}
?>
</td>
<td width="80" height="24">
<?php
$query = "SELECT * FROM infos ORDER BY 'numcmd'";
$result = mysql_query($query, $link) or die($query . " - " . mysql_error());
while ($tab = mysql_fetch_array($result)) {
echo $tab['transporteur'];
echo "
";
}
?>
</td>
<td width="80" height="24">
<?php
$query = "SELECT * FROM infos ORDER BY 'numcmd'";
$result = mysql_query($query, $link) or die($query . " - " . mysql_error());
while ($tab = mysql_fetch_array($result)) {
echo $tab['fournisseur'];
echo "
";
}
?>
</td>
<td width="80" height="24">
<?php
$query = "SELECT * FROM infos ORDER BY 'numcmd'";
$result = mysql_query($query, $link) or die($query . " - " . mysql_error());
while ($tab = mysql_fetch_array($result)) {
echo $tab['pal'];
echo "
";
}
?>
</td>
<td width="80" height="24">
<?php
$query = "SELECT * FROM infos ORDER BY 'numcmd'";
$result = mysql_query($query, $link) or die($query . " - " . mysql_error());
while ($tab = mysql_fetch_array($result)) {
echo $tab['dateenl'];
echo "
";
}
?>
</td>
<td width="80" height="24">
<?php
$query = "SELECT * FROM infos ORDER BY 'numcmd'";
$result = mysql_query($query, $link) or die($query . " - " . mysql_error());
while ($tab = mysql_fetch_array($result)) {
echo $tab['dateliv'];
echo "
";
}
?>
</td>
<td width="80" height="24">
<?php
$query = "SELECT * FROM infos ORDER BY 'numcmd'";
$result = mysql_query($query, $link) or die($query . " - " . mysql_error());
while ($tab = mysql_fetch_array($result)) {
echo $tab['appro'];
echo "
";
}
?>
</td>
<td width="80" height="24">
<?php
$query = "SELECT * FROM infos ORDER BY 'numcmd'";
$result = mysql_query($query, $link) or die($query . " - " . mysql_error());
while ($tab = mysql_fetch_array($result)) {
echo $tab['saisiepar'];
echo "
";
}
?>
</td>
<td>
<?php
$query = "SELECT * FROM infos ORDER BY 'numcmd'";
$result = mysql_query($query, $link) or die($query . " - " . mysql_error());
while ($tab = mysql_fetch_array($result)) {
echo $tab['etatcmd'] ;
echo "
";
}
?>
</td>
</tr>
</table>
Afficher la suite