Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PRINTING ISSUE

Status
Not open for further replies.

youdaman

Technical User
Dec 26, 2001
66
0
0
US
I have a php program that prints an employee list and picture from a MSSQL database. I have written an array that reads each record in and puts it into a table. The problem is, I have 300 records and many of them are getting cut off. How would I tell php to throw a page break in? Please help!! Thanks.....
 
Are you printing directly to the printer or outputting to HTML and printing from the client? --BB
 
BB,

It is to html, then to the client. Tks for your response!
 
Use this in your css:
<style>p {page-break-before:always}</style>

and then in your HTML throw in a <p> tag any time you want a page break. You can use other tags too but this can't be done by all tag types.
Clive
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top