PHP Classes

Create CSV: Generate CSV files from MySQL query results

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   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

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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 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:1097
 
The code is a little out of date but it works fine.
7 years ago (zinsou A.A.E.Moïse)
67%StarStarStarStar