Page 1 of 1

Report Question :: About Header..

Posted: Mon Jun 19, 2006 9:33 pm
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

Posted: Mon Jun 19, 2006 9:36 pm
by Christopher
You need to print the header on every HTML page and use break before/after to control pagination.

Posted: Mon Jun 19, 2006 9:49 pm
by Lightzero
Sorry...
Can you give me an example...??? :D
Thanks...

Posted: Tue Jun 20, 2006 12:18 am
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

Posted: Tue Jun 20, 2006 12:29 am
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