Show data from mysql in two columns php
Hello :D
If I have the following code
Quote:
if(!isset($_GET['id']))
{
$self = $_SERVER['PHP_SELF'];
$query = "SELECT id, nombre_of FROM oficinas ORDER BY id";
$result = mysql_query($query) or die('Error : ' . mysql_error());
$direccion = '<ol>';
while($row = mysql_fetch_array($result, MYSQL_NUM))
{
list($id, $nombre_of) = $row;
$direccion .= "<li><a href=\"$self?id=$id\">$nombre_of</a></li>\r\n";
}
$direccion.= '</ol>';
As I can do in order that the data in a list with two columns be shown ?
Sorry, my english is not good
help me, please!!!!!!!