You are here: Re: Multiple Column Output « PHP Programming Language « IT news, forums, messages
Re: Multiple Column Output

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация