Re: repeat region

From: Date: Thu, 19 Dec 2002 05:49:26 +0000
Subject: Re: repeat region
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-128806@lists.php.net to get a copy of this message
$idx=1; echo(<TR>) while(fetch_rows) { printf("<TD>%s</TD>, ID); if($idx%7=0) {echo('</TR><TR>'} ++$idx; } "Bruce Levick" <brucel@ispye.com> wrote in message news:FE6D82BC94316E418A3F97EF3E66AD4D204439@ispyesrv1.ispye.com... Hi php'ers, I have learnt alot in the last week in regards to php and listing the rows of a table set. I need help with a small challenge. I can retrieve rows from a database table and list the results in HTML <tr> cell successfully. My challenge is this. I want to list the I.D (auto increment id number) of a data base table in html to display 7 columns accross and then drop down to the next row and another 7 columns accross. So the result would list numbers .1-7 then drop down and list 8-14 underneath and so in until the end of the results. Is this at all possible?? Difficult?? Is there a project or a tutorial with an example I can draw from.?? Cheers

« previous php.general (#128806) next »