for ($n=0; $n<$numrows_offline; $n++) { $temp1=($n*3)+1; $temp2=($n*3)+2; $temp3=($n*3)+3; $tableoffline.="