Skip to content

Instantly share code, notes, and snippets.

@edwardteach42
Created February 2, 2012 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edwardteach42/1725285 to your computer and use it in GitHub Desktop.
Save edwardteach42/1725285 to your computer and use it in GitHub Desktop.
Insert After XX Number of Rows - PHP
<?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