Unanswered: Export mysql results to CSV from PHP website
I have written a small (2line) query. I want to create link on my php site which on click will run this script automatically and export results to an excel or csv file. I dont want to create a page to view the results.
Any help to this new bie will be very useful. I am not well conversed with PHP just know a little bit of mysql.