Jump to content

php page break


pugs1501

Recommended Posts

I am building a form that inserts data into a database and then another user comes and pulls like a report from the database of all the information int he database. I was wondering when i create this report it is actually going to have multiple reports because every record is a a report and I was going to list them all on one screen but i need a way to be able to say where a page breaks for printing. I was wondering how I would do that. Thank you for your time.

 

Adam

Link to comment
https://forums.phpfreaks.com/topic/54342-php-page-break/
Share on other sites

That is not a PHP question, it is an HTML/CSS question.

 

Here's one way to implement it:

 

<html>
<head>
<title>Page Break Example</title>
<body>
Page 1 Content
<br style="page-break-after:always;">
Page 2 Content
<br style="page-break-after:always;">
Page 3 Content
</body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/54342-php-page-break/#findComment-268861
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.