How do I put array into columns
- by mathew
$db = mysql_connect("", "", "") or die("Could not connect.");
mysql_select_db("",$db)or die(mysql_error());
$sql = "SELECT * FROM table where 1";
$pager = new pager($sql,'page',6);
while($row = mysql_fetch_array($pager->result))
{
echo $row['persons']."<br>";
}
mysql_close($db);
above code output :
Mathew
Thomas
John
Stewart
Watson
Kelvin
What I need is it should split inot multiple columns say:
Mathew Stewart
Thomas Watson
John Kelvin
HOw do I do this??