Run an SQL query, return a .csv file

This page runs a MySQL query and returns the result as a .csv file which you can save through your browser.

Note - for the purpose of this demonstration we have hardwired a simple query against our database and THAT is what the example runs, no matter what you type into the box (just don't leave it blank).

The source code is on our web site here so that you can take a copy, adapt it for your use if it's suitable, and so on.

More about this example On the Horse's Mouth. Also an update here

Graham Ellis / Well House Consultants / 2023

Training sample © 2023, WELL HOUSE CONSULTANTS LTD
This is
See source code here • More examples - same topic here
Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
Phone: +44 (0) 1225 708 225 • EMAIL: • WEB: