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


  1. BFG9000
    Member

    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 #
  2. yuniar

    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 #
  3. BFG9000
    Member

    Thanks Yuniar - Awsome service as usual.

    TTFN

    BFG

    Posted 15 years ago #

RSS feed for this topic

Reply