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.
Query

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 / 2024

Training sample © 2024, WELL HOUSE CONSULTANTS LTD
This is http://www.wellho.net/demo/aos.php
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: info@wellho.net • WEB: http://www.wellho.net