Report Question :: About Header..

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Lightzero
Forum Newbie
Posts: 4
Joined: Mon Jun 19, 2006 7:53 pm

Report Question :: About Header..

Post by Lightzero »

I want make Report with HTML and PHP...
I show my data in php to table in HTML and I want print with javascript windows.print();
My report shows header, details report... but, when i change the page i want my header shows again..
How to do that ??? :D :D :D

Thank You
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

You need to print the header on every HTML page and use break before/after to control pagination.
(#10850)
Lightzero
Forum Newbie
Posts: 4
Joined: Mon Jun 19, 2006 7:53 pm

Post by Lightzero »

Sorry...
Can you give me an example...??? :D
Thanks...
4Boredom
Forum Contributor
Posts: 176
Joined: Tue Nov 08, 2005 4:29 pm

Post by 4Boredom »

Have a page called header.php with what you want to include on every page

Then use the following code at the top of each page:

Code: Select all

<?php require("header.php"); ?>

this also works with footers
Lightzero
Forum Newbie
Posts: 4
Joined: Mon Jun 19, 2006 7:53 pm

Post by Lightzero »

Sorry,
I mean header of the page in the paper... not in the one web page...
So, I have one web page....
If I Print the page to paper, it sometimes have 2 papers as results, sometimes 3 papers...
I want every paper also print the same header... :D :D
Post Reply