kirisutegomen Posted August 28, 2009 Share Posted August 28, 2009 ok so what i want to do is row row page break row row page break row row page break any know how to do this? Link to comment https://forums.phpfreaks.com/topic/172239-solved-php-mysql-how-to-page-break-after-2-rows/ Share on other sites More sharing options...
dreamwest Posted August 28, 2009 Share Posted August 28, 2009 $result = mysql_query( "select stuff"); while ( $record = mysql_fetch_assoc( $result ) ){ $counter = 0; echo $row['id']; if($counter == 2){ echo "Stopped!"; break; } $counter = $counter + 1; } Link to comment https://forums.phpfreaks.com/topic/172239-solved-php-mysql-how-to-page-break-after-2-rows/#findComment-908165 Share on other sites More sharing options...
ignace Posted August 28, 2009 Share Posted August 28, 2009 if (0 === ($i % 2)) { echo '<br>'; } echo '<span>' . $record . '</span>'; Link to comment https://forums.phpfreaks.com/topic/172239-solved-php-mysql-how-to-page-break-after-2-rows/#findComment-908169 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.