LS,
Basically my code opens a connection to the Excel file, performs an UPDATE query, and closes the connection again.
When I execute a SELECT on the file, and output it, it does reflect the updated data, but when I close the connection and send the file to the user, it doesn't have the data in it.
It seems that the data is written after the script is fully finished, because the (remote) file is correct after the request.
Kind regards,
Matthias Vance
Edit:
// Pseudo code
$excel = new Excel($path);
$excel->query("SELECT $columnNames, '' AS newCol1, '' AS newCol2 INTO [$newFile].[newSheet] FROM [$sheet]);
$excel->close();
$excel = new Excel($newFile);
$excel->query("UPDATE [newSheet] SET newCol1 = 'x'");
$excel->close();