Thanks Ahsan, it is really help. On Fri, Mar 19, 2010 at 4:34 PM, Ahsan Tohari <ar.sby@xxxxxxxxxxxxxxx>wrote: > > > $i = 1; > while ($row = mysql_fetch_array($data)) > { > echo sprintf("%03d ", $i); > echo $row["your_data"]; //if any > if($i % 4 == 0) > { > echo "<br />"; > } > $i++; > } > > > Ahsan > > _____ > > From: php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com> [mailto: > php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com>] On > Behalf Of Sovichea SOU > Sent: 19 Maret 2010 15:06 > To: php-objects@xxxxxxxxxxxxxxx <php-objects%40yahoogroups.com> > Subject: Display break every specific number > > > Hi, > > I want to display a break (<br>) every 4 numbers of records. > For example: > 001 002 003 004<br> > 005 006 007 008<br> > 009 010 011 012<br> > > How to do that? > > Thanks. > > [Non-text portions of this message have been removed] > > [Non-text portions of this message have been removed] > > > [Non-text portions of this message have been removed] ------------------------------------ Are you looking for a PHP job? Join the PHP Professionals directory Now! http://www.phpclasses.org/jobs/ Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php-objects/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/php-objects/join (Yahoo! ID required) <*> To change settings via email: php-objects-digest@xxxxxxxxxxxxxxx php-objects-fullfeatured@xxxxxxxxxxxxxxx <*> To unsubscribe from this group, send an email to: php-objects-unsubscribe@xxxxxxxxxxxxxxx <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/