How can I convert the array/json into an Excel file (Office Open XML)?
$result = mysql_query($query);
$rows = Array();
while($row = mysql_fetch_assoc($result)) {
array_push($rows, $row);
}
echo json_encode(Array(
"data" => $rows
));
How can I convert the array/json into an Excel file (Office Open XML)?
$result = mysql_query($query);
$rows = Array();
while($row = mysql_fetch_assoc($result)) {
array_push($rows, $row);
}
echo json_encode(Array(
"data" => $rows
));