This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 2
Exporting the actual ID rather than a row number
Started 15 years ago by BFG9000 | 3 posts |
-
Hi Guys,
I have a need to get the actual ID from the DB to be exported into excel rather than an incrementing row number as the first column (in fact any column would do...).
My guess is that this would be an easy fix, but I'm not familiar with Spreadsheet_Excel_Writer.
I'd be grateful for any assistance you could offer.
TTFN
BFG
Posted 15 years ago # -
Yes, this is pretty simple.
Edit your export_entries.php, search around line 327 and you'll find this:if($j == 0){ $form_data[$i][$j] = $row_num; }
change it to become:
if($j == 0){ $form_data[$i][$j] = $row['id']; }
MachForm Founder
Posted 15 years ago # -
Thanks Yuniar - Awsome service as usual.
TTFN
BFG
Posted 15 years ago #
Reply
You must log in to post.