results into two rows
Posted: Sun Sep 17, 2006 5:17 pm
Hi Guys,
I have this
I need to get these results into two rows/columns on the page.
How would this be done?
Thanks in advance.
I have this
Code: Select all
$query = "SELECT id, module, companyname FROM modules WHERE companyname='$companyname'";How would this be done?
Code: Select all
$result = mysql_query($query);
while ($line = mysql_fetch_array($result))
{
extract($line);
echo ' <table width="100%" cellspacing="2" cellpadding="2"><tr><td>'.$module.'</td><td>'.$module.'</td></tr></table> ';
}