Exporting to CSV from MySQL via PHP in FireFox
- by typoknig
Hi all, I am pulling some info from a database with the following code:
<input type="button" value="Export to Excel" onClick="window.navigate('breakfast_service.php?action=export')">
Here is the code for that action.
<?php
if ($_GET['action'] == 'export')
{
// Get the registration data
$user = 'root';
…