I am writing a script that displays items for sale in each category. Obviously, the items are gathered from the database and put into a variable via a while() loop. What I want to do is put them into two seperate variables. One for each of two table columns. I want every other item to alternate. Like:
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
*/