Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old June 6th, 2004, 01:42 PM
Registered User
Join Date: Jun 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default name/address labels from a mySQL db

how do I format a page so that it is accurately printable? Specifically, I have a mySQL db on a linux server with php pages providing view/search/update access from windows PCs, and I want to make printable pages available on the PCs. Are there php report generator type packages, or something, which can do this? Anything that already handles standard format label pages? Should I build pdf pages, or something?

Old June 8th, 2004, 06:13 PM
richard.york's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 1,706
Thanks: 0
Thanked 6 Times in 6 Posts

I'd use CSS and create a print style sheet, whereas you can style a document for print directly from a browser window.

<style type="text/css" media="print">

    /* Style rules for printed media here */


With a print style sheet you can format a page for print just like you would format a page for display in a browser. Use the print preview feature of a browser to view changes to the print style sheet.

If you want something fancier then pdf would be the way to go.


The Spicy Peanut Project

Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent: Print address labels aspBegineer83 ASP.NET 2.0 Basics 1 January 11th, 2008 08:59 AM
address labels to columnar form skrj02 Excel VBA 0 January 2nd, 2007 02:48 PM
labels from a name/address mySQL db p2p-mlh PHP Databases 1 June 8th, 2004 06:14 PM
name/address labels from mySQL db p2p-mlh PHP How-To 1 June 8th, 2004 06:14 PM
Printing address labels ASP/Access bjtindle Access ASP 1 September 23rd, 2003 11:57 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.