Create mysql_select_write_outfile.php

Generic connection to MySQL database, selects from table then writes to a file.
Note: Ensure the hostname is correct ($host).