Appnitro Software Forums » MachForm 2

Exporting the actual ID rather than a row number


  1. 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 3 years ago #
  2. 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 3 years ago #
  3. Thanks Yuniar - Awsome service as usual.

    TTFN

    BFG

    Posted 3 years ago #

RSS feed for this topic

Reply