Archive for June, 2006

Quick and Dirty Code to Dump MySQL table to Excel

Thursday, June 8th, 2006

I had a tough time finding a quick example of dumping a MySQL table to Excel using PEAR Spreadsheet_Excel_Writer so here is what I came up with. Very handy and I hope it helps somebody looking for the same thing. < ?php require_once 'Spreadsheet/Excel/Writer.php'; require_once 'DB.php'; require_once 'DB/Table.php'; // create a PEAR DB object $dsn […]