Hi guys, I need help understanding pagebreaks. My intention is to print another
page each time another row is extracted. the document doesn't fill the page.
The following code will break if a file overfills a page but not needed here.
Also, it shouldn't print "Page 1" or "Page 1". Thanks
========================================================================
PHP Code:
<html><head><title>Invoice</title>
<style>
@page { size 8.5in 11in; margin: 2cm }
div.page { page-break-after: always }
</style>
</head><body bgcolor="#D4FFAA"><center>
<div class="page">
<?php
-----------
<?php
echo "Page 1";
?>
</div>
<div class="page">
<?php"Page 1";
}
}
?>
</body></html>
Bookmarks