Created
February 2, 2012 19:33
-
-
Save edwardteach42/1725285 to your computer and use it in GitHub Desktop.
Insert After XX Number of Rows - PHP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$i = 1; | |
while ($x < 17){ | |
echo 'Data ' . $i . '<br>'; | |
//Change Value to how many rows you want to insert after. | |
if( ($i % 3) == 0 ){ | |
echo 'Snippet of text--<br>'; | |
} | |
$i++; | |
$x++; | |
}//while | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment