Return to Snippet

Revision: 46435
at May 19, 2011 05:46 by princeofvegas


Initial Code
<?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
?>

Initial URL

                                

Initial Description

                                

Initial Title
Insert After X Number of Rows

Initial Tags
mysql, php

Initial Language
PHP