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 61%Total: 3,817 All time: 840 This week: 488Up
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: 321 Up1 in Hong Kong Hong Kong Equal

  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  
 0%
Total:3,817
This week:0
All time:840
This week:488Up
User Ratings User Comments (1)
 All time
Utility:89%StarStarStarStarStar
Consistency:89%StarStarStarStarStar
Documentation:-
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:61%StarStarStarStar
Rank:1083
 
The code is a little out of date but it works fine.
6 years ago (zinsou A.A.E.Moïse)
67%StarStarStarStar