Posted by J.O. Aho on 04/07/07 10:57
Blagovest wrote:
> Hi.
> I'm looking for a MySQL data extraction > PDF tool. Free would be great,
> but cheap would also be acceptable. I'm a webmaster rather than a DB
> expert, so please be easy with me - I googled and found lots of stuff,
> but it was over my head!
http://www.fpdf.org/
As each database is designed differently there aren't any general code that
will take the database and push it into a pdf, you need to make your own
little script to fetch the data you need.
--- codeless example ---
/* connect to server and select database */
/* query the data you want and then fetch row by row */
while($row=mysql_fetch_array($resource)) {
/* push the data into the pdf */
}
/* eject the pdf, don't forget to send some header() */
--- eof ---
--
//Aho
[Back to original message]
|