Hello,
I am trying to do an export from a table within a mysql database into a csv file where my parameters are a start date and end date...but I am experiencing a few problems...
Background:
I have 2 files; testGCR.php and gcrFunction.php.
testGCR.php has my form where the user enters the relevant dates (I have a inserted calender to enter the dates...the date when chosen from the calender looks like "dd-mm-yyyy"), this is to be passed to the query...
gcrFunction.php has the validation of the data entered in the date boxes as well as the export code (which I got off the net :icon_redface: )
Problem 1:
when the date is entered in the select query, only the column names are displayed with no data in the csv (even though the table has alot of data)
Problem 2:
in the csv file, just above the column names are the entire chunk of code from testGCR.php....it's not supposed to do that...it's only supposed to show me the results...
Any suggestions/comments are most welcome...
Thanks in advance
May