|
Posted by ws Monkey on 12/18/87 11:48
Use a counter while outputting the records..
The counter ($i) will take place of the recordset id's
psuedo
while(recordset){
$i++;
if($i == $column_depth_count){
//switch columns
$i = 1;
}
}
Hope that helps,
-- Steve
TristaSD wrote:
> Hi,
>
> Trying to streamline my code to output a "SELECT ALL" query into
> multiple columns of the same table. Right now it's set to put values
> into certain columns based on the ID (INT, Autonumber).
>
> However, some of the items got deleted, creating gaps in IDs - messed
> everything up. Better way?
>
> Thank you in advance.
>
Navigation:
[Reply to this message]
|