PHP Classes

Create CSV: Generate CSV files from MySQL query results

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum (4)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 65%Total: 3,816 All time: 839 This week: 310Up
Version License PHP version Categories
create_csv 1.0.0Freely Distributable4.0Databases, Files and Folders
Description Author

This is a very simple class that can be used to generate CSV files from MySQL query results.

It can execute a MySQL database query and use the results to format the contents of a CSV file.

The CSV file contents is returned as a string, so it can be served for download or stored in a server file.

Picture of Ellery Leung
Name: Ellery Leung <contact>
Classes: 6 packages by
Country: Hong Kong Hong Kong
Age: ???
All time rank: 3371 in Hong Kong Hong Kong
Week rank: 553 Down2 in Hong Kong Hong Kong Down

  Files folder image Files  
File Role Description
Plain text file CreateCSV.class.php Class Source
Accessible without login Plain text file example_csv.php Example Example

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:839
This week:310Up
User Ratings User Comments (1)
 All time
The code is a little out of date but it works fine.
5 years ago (zinsou A.A.E.Mo´se)