while($row = mysqli_fetch_array($result)) {
$output .= '
<tr>
<td>'.$row["date"].'</td>
</tr>
';
}
$output .= '</table>';
header('Content-Type: application/xls');
header('Content-Disposition: attachment; filename=download.xls');
echo $output;
برچسب:
نویسنده: خنج