I want to export sql query results as table on an XLS file (or anything that can be opened as table on ms excel)
I've tried this one » PHP code to convert a MySQL query to CSV
however, it removes any leading zeros on the result
how do I maintain/preserve the leading zeros?