Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.