Link to home
Start Free TrialLog in
Avatar of movieprodw
movieprodw

asked on

PHP, create multi-page txt file

Hello,

I have a list of names and addresses in my db, I would like to be able to output a multi-page txt file so that each name and address in on a separate page.

How do I create a multi page txt file using php?

Thank you,
Matt
Avatar of Kim Walker
Kim Walker
Flag of United States of America image

Can you provide more detail about what you need? A txt file has nothing but characters and line breaks. It doesn't contain formatting or styles, or layout such as page breaks. Please describe in detail the type of file you wish to generate.
Avatar of movieprodw
movieprodw

ASKER

Hello,

I am using a label printer and it will print each page as a label so I just need the txt file or even a pdf file (whichever is easier) to create one document that is broken up by pages.

Example:

Username
Birthdate
phonenumber

(NEW PAGE)
Username
Birthdate
phonenumber

(NEW PAGE)
Username
Birthdate
phonenumber

(NEW PAGE)
Username
Birthdate
phonenumber

(NEW PAGE)
ASKER CERTIFIED SOLUTION
Avatar of Ray Paseur
Ray Paseur
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Already have it up and running, as usual you have saved me lots of time, thank you Ray!
Thanks for the points, and best of luck with your project, ~Ray