OK so I have no Idea how to do this except install PHPexcel
But say I have the results of a query in an array

$mysqli = new mysqli('server', 'user1', 'pass', 'users');if ($mysqli->connect_error) die(connect error ('.$mysqli->connect_error.') '.$mysqli->connect_error);$date = date("Y-m-d");$query = "SELECT * from usr WHERE date = '$date'";while($row = $query->fetch_array()) { //EXCEL STUFF???}And then how would I write this to an excel spreadsheet?Any help appreciated


Check Solution