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
Depending on the language, something like this should do it: (in php) (where $arr is an array of results)
$str = ''; $i = 0; for ($i=0; $i'; } else { $str .= $arr[$i]; } } echo $str;