If I do a select query in php, how can I direct the info into a csv file - or excel file instead of printing to the screen.
e.g. select * from tbl_name where last="Barr";
// send to page
With the Filesystem Functions . There are functions specific to the creation of csv files as well as other file types.