How do I export MySQL data to csv file using php?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
webfeetdesign
Forum Newbie
Posts: 3
Joined: Tue Aug 16, 2011 11:17 am

How do I export MySQL data to csv file using php?

Post by webfeetdesign »

Hi there,

I'm a total newbie and made my first app using a great book. But the problem I'm having is that I need to be able to export my data from the database at the click of a button.

I have a database that collects user details such as First name, Last name, Address1, Address2, Postcode etc... How can I export this data?
User avatar
social_experiment
DevNet Master
Posts: 2793
Joined: Sun Feb 15, 2009 11:08 am
Location: .za

Re: How do I export MySQL data to csv file using php?

Post by social_experiment »

http://www.rogerdavies.com/2009/02/php- ... -database/
Have a look at this url

Try googling "How do I export MySQL data to csv file using php", you're likely to find more results :)
Post Reply