I am currently using this to pull up the area list:
$cols = 2; // how many cols you want
$result2 = mysql_query("SELECT geography_area.* FROM geography_area WHERE zone_id = $row[zone_id] ORDER BY area ASC");
echo mysql_error();
if (mysql_num_rows($result2))
for($i=1;$row = mysql_fetch_array($result2);$i++)
{
if($i==1)
{
echo "<TR>";
}
echo"<td valign=top width=50%>" . $row['area'] . "</td>";
if($i==$cols)
{
echo "</TR>";
$i=0;
}
}
if($i!=1)
{
echo "</TR>";
}
The problem I am having is it is listing the results as
A A
B B
C C
How I want it to appear is:
A B
A C
B C