I am using PHP to extract data from a mysql database to write out static html web pages.
I am writing out a long table and I would like to insert </tr><tr> after every third record.
I tried using:
if($i % 3 == 1)
fwrite( $out,"</tr><tr>" ) ;
but it is not working.
Any help would be greatly appreciated.