implementing two columns in FPDF

I hope that it is ok to post this question. I’ve been working with php for years, but am very novice. Thanks in advance for any help.

I’ve created some database scripts to create a photo directory and phone book for my church. I am using fpdf (http://www.fpdf.org/) to create the pdfs for output.

The sample phone book page can be seen here: http://newhopealive.org/quick_glance2.pdf
I can get everything to work except for how to implement the two columns. FPDF has a tutorial on how to do it, but its over my head, and it calls for pulling data from a text file, where as my data comes from an array. Here’s a link to the tutorial http://www.fpdf.de/tutorials/4/ I would post in their forums, but it’s all in German :frowning: One solution I have been given basically used fixed size table cells, but as you can see each record has various numbers of fields populated.

I’m wondering if it is possible to insert my data into either a file or to use this tutorial but to read from an array. I’m sure putting the array into a txt file and then reading the txt file is the wrong way to do it, but this tutorial is over my head.

You can see my php file here: http://pastebin.com/1iPBQWZi

Thanks again for taking the time to help me out.

It’s been a week with no replies. Would someone have a suggestion where I could get some help with my problem?

Thank You

Sponsor our Newsletter | Privacy Policy | Terms of Service