Idea:
I want to do a print layout, my solution is by absolute div's. to fill it, i use php. On every page is a table. On one page is enough space for 10 rows.
So i do the following code to prevent more than 10 rows on a page, the rest gets ignored (im solving this later by a message).
here is the code:
<table>
<?php $i=1;
while($info5=mysqli_fetch_array($data5)): ?>
<?php while($i <'10'):?>
<tr>
<td width="50px"><?php echo $i; ?></td>
<td> foo </td>
<td> bar </td>
</tr>
<?php endwhile; ?>
<?php $i++; endwhile; ?>
Unfortunately this code causes firefox, chrome and IE to break. The site starts loading, and then freezes, ending up in a "send crash report".
Why?