Thread
:
PHP & MySQL: echo something every X number of rows?
View Single Post
(#
3
(
permalink
))
byteofk
is
Offline
Private
Posts:
14
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date:
Dec 2007
December 26th, 2007
pseudocode (no attention to syntax):
$sizeofblock = 10; // if you want it repeated every 10 rows
$x=0;
while($results()){
$x++;
echo $results($x);
if((floor($x/10))==($x/10)){
echo $dividertext after $x rows;
}
}
View byteofk's sig
byteofk
View Public Profile
Send a private message to byteofk
Find all posts by byteofk