Usamos cookies para medir audiência e melhorar sua experiência. Você pode aceitar ou recusar a qualquer momento. Veja sobre o iMasters.
Bom dia,
Eu queria uma ajuda para entender como eu posso fazer para adicionar 3 registros por linha (<tr>) dentro do while. No no meu código abaixo, ele exibe um registro por linha:
echo "<table border='0' class='bg_fila' height='120' width='650'>";
while($row = mysql_fetch_array($result))
{
echo "
<tr>
<td height=50 width=250 align=center valign=top >
<font> ".$row['NomeFila']." </font>
</td>
</tr>";
}
echo "</table>";
Tem como eu exibir 3 resultados por <tr> e depois criar um novo <tr>
mais ou menos assim a ideia:
<tr>
<td height=50 width=250 align=center valign=top >
<font> result1 </font>
</td>
<td height=50 width=250 align=center valign=top >
<font> result2 </font>
</td>
<td height=50 width=250 align=center valign=top >
<font> result3 </font>
</td>
</tr>
<tr>
<td height=50 width=250 align=center valign=top >
<font> result4 </font>
</td>
<td height=50 width=250 align=center valign=top >
<font> result5 </font>
</td>
<td height=50 width=250 align=center valign=top >
<font> result6 </font>
</td>
</tr>
É isso, espero ter me expressado bem. Obrigado desde já.
Carregando comentários...