I have a little script that prints a certain amount of rows in a mysql database.
Is there any way to make it so that after every second row it prints, ther
You write "script" but in tags you have PHP, so I suppose you need PHP code:
foreach ($rows as $row) { if ($i++ % 2) { // this code will only run for every even row } ... }