Hi,
I'm trying to export data from postgresql table to CSV file so that the users can download CSV file.
I'm using,
header("Content-type:application/vnd.ms-excel");
header("Content-Disposition:filename=test.xls");
BUT when I download the CSV file, it contains NO data.
I've checked my sql query and there seems to be nothing wrong.. Could anyone please help me?