View Single Post
03-30-2005, 04:07 AM
#2
Travis is offline Travis
Status: Member
Join date: Jul 2004
Location:
Expertise:
Software:
 
Posts: 445
iTrader: 0 / 0%
 

Travis is on a distinguished road

  Old

Assuming this is done with php and with a database something like this(please note I have not done php for a while and this is off the top of my head):

PHP Code:
<?

/*
 * Some sought of database connection/query up here
 * or perhaps an array or something to store the items
 */

$column1 "<td>";
$column2 "<td>";

$i 1;
while(
$row mysql_fetch_array()) {
   if(
$i 1) {
      
$column1 .= $row[item] . "<br>";
      
$i 2;
   } else {
      
$column2 .= $row[item] . "<br>";
      
$i 1;
   }
}

$column1 .= "</td>";
$column2 .= "</td>";

/*
 * Then you would have a table down here some where
 * and you would print out the 2 column variables
 */
?>