问题 please help to complete this. I need to download order report of woocommerce in csv format, for that i made the following query: header('Content-Type: text/csv; charset=utf-8'); header('Content-Disposition: attachment; filename=data.csv'); // create a file pointer connected to the output stream $output = fopen('php://output', 'w'); fputcsv($output, array('ID', 'Date', 'Status','Name')); $rows = mysql_query('SELECT ID,post_date,post_status,post_name FROM wp_posts WHERE post_date LIKE "%2016-03