> I wanna get them(i know how to do that) and list them in a
> 2-column table. I have been trying to use a loop to do it. But it
> will only produce a 1-column table. it's like
>
> entry 1
> entey 2
> entry 3
> entry 4
> etc
>
> Please help me so that i can get this :
>
> entry1 entry2
> entry3 entry4
Try this:
<?
echo "<TABLE>\n";
for ($i = 0; $i < num_rows($query); $i++ )
{
$row = mysql_fetch_array($query);
if ($i % 2)
{
echo "<TR>\n";
}
echo " <TD>$row[value]</TD>\n";
}
echo "</TABLE>\n";
?>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]