display mysql data in two coulums ...

A

Anonymous

Guest
is there a way to display data from a coulum in a mysql table in to like two colums in the page .. like :

A | D
B | E
C | F

is there a way ?
 
exemple code

Code:
$query=mysql_query("SELECT * FROM `sometable`");

echo "<table border=0>";

while ($data=mysql_fetch_array($query))
    {
     echo "<tr><td>$data[1]</td><td>$data[2]</td></tr>";
    }

echo "</table>";
 
Back
Top