Linked Questions

1 vote
1 answer
11k views

how can I force the browser to download a csv file I created in PHP? I tried $result = array ( array('aaa', 'bbb', 'ccc', 'dddd'), array('123', '456', '789'), array('aaa', 'bbb') ); $...
user2461031's user avatar
1 vote
2 answers
6k views

Possible Duplicate: Create a CSV File for a user in PHP Even though title looks like simple, my question is a little bit different. I need to export my php table's data into CSV file. My page ...
CanCeylan's user avatar
  • 3,040
1 vote
1 answer
3k views

Possible Duplicate: Create a CSV File for a user in PHP I am looking for a solution to create a CSV download link from a mysql query for my little project. Basically the download link will be in ...
JudeJitsu's user avatar
  • 748
0 votes
2 answers
2k views

I want to create and download a CSV file, in one script. Up to now I have been avoiding my lack of knowledge by pre-creating the file with a cron job and then downloading the file via a link. I ...
yolo191919's user avatar
123 votes
9 answers
378k views

I am a novice programmer and I searched a lot about my question but couldn't find a helpful solution or tutorial about this. My goal is I have a PHP array and the array elements are showing in a list ...
user2302780's user avatar
  • 1,249
6 votes
4 answers
36k views

I am trying to convert a php/mysql generated table into a downloadable csv file. When a user enters search parameters, a call is made to a mysql table and results returned as table. I used the ...
Bad Programmer's user avatar
3 votes
2 answers
7k views

I have a string which contains csv data. Can I somehow offer that string for download as a csv file without saving it before? Thanks
user1856596's user avatar
  • 7,273
1 vote
4 answers
7k views

I created a web application and I want to add a feature like user can export selected records... Check Box Name Email Sumit [email protected] Karan [email protected] I ...
SB24's user avatar
  • 531
3 votes
3 answers
6k views

I am trying to query a mysql database and display data in a table. That part is working. At the moment, it is set up for displaying the results within the certain date range. I now want to take ...
Emeria's user avatar
  • 168
0 votes
2 answers
15k views

I've tried my darnest to avoid asking this question (I viewed and try a ton of examples already on the forum), most partially work which leads me to believe I'm missing something. I have a link setup ...
snapplex's user avatar
  • 851
4 votes
2 answers
13k views

I need help with this code,I manage to extract data from a mysql database and convert them to a format required by Highcharts. <?php $query =mysql_query("select date_format(...
hch's user avatar
  • 101
0 votes
1 answer
6k views

I'm using this code as mentioned here. $file = date('dmY-His'); header("Content-type: text/csv"); header("Content-Disposition: attachment; filename=visitors-$file.csv"); header("Pragma: no-cache"); ...
Mohammad Faisal's user avatar
1 vote
2 answers
4k views

I'm trying to export records to csv file after fetch from Mysql using php. I'm following this answer instructions and its working fine for me. function array2csv(array &$array) { if (count($...
Ayaz Ali Shah's user avatar
0 votes
1 answer
6k views

I am new in json. I generated jason data from mysql table using php and want to export the generated json to .xls or .csv format. I used the following php code to generate the json data: examexport....
Roise Ali's user avatar
1 vote
2 answers
4k views

I would like to generate report from my php which now I have only the html version. Can any one suggest me good tools to generate excel and pdf based tool at minimum? Thank you.
user837306's user avatar

15 30 50 per page