How to put an array into columns
$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
Stuart
Watson
Kelvin
I need it to break into multiple columns:
Matthew Stewart
Thomas Watson
John Kelvin
HOw am I doing this ??
+2
a source to share