...

View Full Version : PHP - MySQL query to CSV export



sam20e
07-24-2012, 11:15 AM
Hi

I have a PHP script. Its a library management system. So after all the books are stored in the database i need to create multiple reports - like clicking a link which will execute the SQL command and export the result to CSV. Can anyone guide me how can we do this CSV export?

Thanks
Sam

Arcticwarrio
07-24-2012, 01:07 PM
http://davidwalsh.name/backup-mysql-database-php

sam20e
07-25-2012, 02:57 AM
http://davidwalsh.name/backup-mysql-database-php

Hi

I think you got it wrong. all i need is i need a link "Click here to generate CSV" when someone clicks that link, it should execute a query and export that sql query result to a CSV file..

Sam



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum