-
php pagebreaks
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>
-
Hey, Its totally wrong script. Please review and re-post it again.
Thanks
-
Looks like it's not so much wrong script as not really a script. It doesn't appear to do anything. Also, to not print 'Page 1', use a print stylesheet.