I print my table like that:
print $tableHeader . $dataRow . $tableFooter;
the $dataRow is the result of a loop (getting data from DB and building the row, nothing unusual), it's something like:
while ($obj = mysql_fetch_object($res)) {
$dataRow .= ' <td width="210" style="...">' . $obj->title . ' <br /> '. $obj->screenName .' </td>';
...
...
}
The problem is when there is a huge amount of information to handle => huge amount of rows to build before displaying the final table.
How could I tell Apache to display it row by row ?
mysql_*functions in new code. They are no longer maintained and are officially deprecated. See the red box? Learn about prepared statements instead, and use PDO or MySQLi - this article will help you decide which.echoinstead, if you can.