Hi i have a form which consist three part, namely the letter part, the detail part and the notes parti am able to print the letter report but now i want to start the new report on a new page i mean when a user tries to print the report the letter part should come on a page and the detail part on a newpage which will be A4 for all pages can anybody help me in this?i just want to know how to use while with tablesfor eg.\[code\]<?phpecho "table";while($row= mysql_fetch_array($result)){echo "<tr>";echo "<td>$row[data1]</td>";echo "<td>$row[data2]</td>";echo "</tr>";}echo "</table>";?>\[/code\]