How to provide a download of a mySQL database in PHP -
The form that I have, which are stored in the database instead of being emailed to the webmaster, Output is being done in, but it may be crowded so that I would like to provide a download link for the user to download a readable file. CSV can be the most basic, but if this is possible, a spreadsheet will also be better
thanks, Henry
This is not really difficult:
Include SELECT t1.a, t2.b from Table 1 T1 in INNER Table 2 T2 On (T1 Id = t2.table1_id) WHERE table2.somefield = 'OUTFILE' in some 'outfile.csv'; Now provide a download link to outfile.csv.
Link:
Comments
Post a Comment