0

i need to print some content from Mysql Db. The problem is that EVERY A4 pages need to have a footer ( at the bottom ) with some general infos...I really don't know how to implement this with php..Any help?? Thx

Charles
  • 50,943
  • 13
  • 104
  • 142
Ste
  • 1,497
  • 8
  • 33
  • 63
  • 1
    You could always serve a pdf created in HTML using tcpdf. – Eamorr Jul 04 '11 at 09:42
  • Export your Database into a CSV file and load it with your Spreadsheet application. Then set header and footer and just print. What's the deal? If you like it more professional, checkout http://www.eclipse.org/birt/phoenix/ – hakre Jul 04 '11 at 09:42
  • Do you want to do that automatically on regular basis or just once? – flori Jul 04 '11 at 09:53
  • automatically!!!!!!!!!!!!!!!!!!!!!!!!!!! – Ste Jul 04 '11 at 12:36

2 Answers2

1

One option is to take HTML/CSS to include a footer on every page printed.

Community
  • 1
  • 1
flori
  • 14,339
  • 4
  • 56
  • 63
  • Maybe you can add a `html { margin-bottom: 5cm; } .footer { bottom: -2cm; }` or something? Or maybe on the `body` element instead of `html`? Or look on my additional links in my edited answer. – flori Jul 05 '11 at 08:37
0

When you depend on exact formating in general you can produce PDFs. However that is a lot more complex like the HTML/CSS solution: http://php.net/manual/en/book.pdf.php

flori
  • 14,339
  • 4
  • 56
  • 63