dear PHPers here is my code, and my question is how can i put the results into a nice table with 3/4 sells.
<?
include("config.php");
include("functions.php");
$id="6";
$home="<a href=/>Home</a>";
$connection = mysql_connect($hostname, $user, $pass) or die ("Unable to connect!");
$query = "SELECT DISTINCT cat_id, name, mas_cat_id from ds_categories WHERE ds_categories.mas_cat_id='$id'";
$result = mysql_db_query($database, $query, $connection) or die ("Error in query: $query. " . mysql_error());
echo "<table width=500 align=center><tr><td>";
while(list($cat_id, $name, $mas_cat_id) = mysql_fetch_row($result))
{
$catlist="<a href=/index.php3?catstr=$cat_id>$name</a> | ";
echo "$catlist";
}
echo "</td></tr></table>";
mysql_close($connection);
?>