how to display data in 2 columns
Posted: Sun Sep 28, 2008 12:50 am
i need help!!!
i need to display the following table in 2 columns instead of 1.
function displaySupConCompany()
{
$result = mysql_query("SELECT SupConCompany FROM `suppliercontacts` ORDER BY `suppliercontacts`.`SupConCompany` ASC");
print("<table border='1'>");
while ($i<=20 and $row = mysql_fetch_row($result))
{
print("<tr>");
foreach ($row as $col)
{
$i++;
print("<td><a href=\"suppliercontacts_ismail_muad.php?id=$id\">$col</a></td>");
}
print("</tr>");
}
thanks
i need to display the following table in 2 columns instead of 1.
function displaySupConCompany()
{
$result = mysql_query("SELECT SupConCompany FROM `suppliercontacts` ORDER BY `suppliercontacts`.`SupConCompany` ASC");
print("<table border='1'>");
while ($i<=20 and $row = mysql_fetch_row($result))
{
print("<tr>");
foreach ($row as $col)
{
$i++;
print("<td><a href=\"suppliercontacts_ismail_muad.php?id=$id\">$col</a></td>");
}
print("</tr>");
}
thanks