neerja-tekmindz / parsecsv-for-php

Automatically exported from code.google.com/p/parsecsv-for-php
MIT License
0 stars 0 forks source link

example "limit.php" does not output expected header row if $csv->sort_by option is not used #24

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. In the example "limit.php", comment out $csv->sort_by = "title" (line 22)
2. Execute limit.php

What is the expected output? What do you see instead?
Expect to see the header names in the first column, then the data rows

What version of the product are you using? On what operating system?
0.4.3, Linux

Please provide any additional information below.
The notes in limit.php describe how the data will be fetched but it's not clear 
that the header row will not be returned.

Suggestion:
Have an option to include/not include the header row.

Original issue reported on code.google.com by srumb...@gmail.com on 3 Mar 2012 at 8:57

GoogleCodeExporter commented 9 years ago
CORRECTION: There is already an option to use/not use the first row as a header 
row. See: var $heading = true (or false) in parseCSV.lib.php at line 88.

It would be helpful if the documentation in "limit.php" noted this option.

Original comment by srumb...@gmail.com on 3 Mar 2012 at 9:23