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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printer Friendly Problem 1

Status
Not open for further replies.

danima

Programmer
Joined
Jan 9, 2002
Messages
134
Location
CA
This may be a bit vague, however, I have an on-line football pool that provides all participants with full standings and a "view all" option to see everyone's picks. Of course, now everyone wants to print it out...but in a printer friendly version.

The entire site is databased (MySQL/PHP) and for some reason the simple Printer Friendly scripts I use within an HTML document, don't seem to work in this environment.

Any ideas? Again, sorry for being vague...
 
Hi mate,

Without seeing your code there isn't really much I can say.

It sounds like this is just a single page that they will be printing, if so then the best way to make a printer friendly version would be to pass a string in the url and then within your page, check to see if this exists, if so then hide certain parts.

Hope this helps

Wullie


The pessimist complains about the wind. The optimist expects it to change.
The leader adjusts the sails. - John Maxwell
 
Thanks...I'll give it a shot.
 
with CSS it's usually pretty simple to make an automatic print-friendly page (if you are already using CSS you mightn't even have to touch your .html page) using media="print" in the linked stylesheet.

Search the HTML & CSS forum for media print, or google it.

Posting code? Wrap it with code tags: [ignore]
Code:
[/ignore][code]CodeHere
[ignore][/code][/ignore].
 
Wow...never heard of that...awesome. Thanks a million!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top