PHP code to convert a MySQL query to CSV

Posted by Reilly on Stack Overflow See other posts from Stack Overflow or by Reilly
Published on 2008-09-24T02:42:46Z Indexed on 2010/04/18 8:43 UTC
Read the original article Hit count: 290

Filed under:
|

What is the most efficient way to convert a MySQL query to CSV in PHP please?

It would be best to avoid temp files as this reduces portability (dir paths and setting file-system permissions required).

The CSV should also include one top line of field names.

Cheers.

© Stack Overflow or respective owner

Related posts about php

Related posts about mysql