<?
include('sistema/config.php');
$Query = mysql_query("SELECT * from itens") or die (mysql_error());
$i = 1;
while($Result = mysql_fetch_array($Query)){
echo ("<table width=\"200\" border=\"1\">");
if (($i%2) == '0'){
echo ("<td>$i</td>");
echo ("<td>$Result[id]</td>");
echo ("<td>$Result[nome]</td>");
echo ("</tr>");
$i++;
}else{
echo ("<tr>");
echo ("<td>$Result[id]</td>");
echo ("<td>$Result[nome]</td>");
$i++;
}
}
echo ("</table>");
?>Assim ele está criando uma linha para cada item.Fico agradecido.










