[FX.php List] help debugging editCompany.php please

CSinfo csinfo at comcast.net
Tue Aug 26 05:11:50 MDT 2008


Thanks, I am editing an existing record, the php form that I am coming from, shows the existing record.
John

-----Original Message-----
From: Alex Gates <alex at gandrpublishing.com>
Sent: Tuesday, August 26, 2008 5:21 AM
To: FX.php Discussion List <fx.php_list at mail.iviking.org>
Subject: Re: [FX.php List] help debugging editCompany.php please

Whoops - sorry - early morning mistake.


$request->AddDBParam('-recid', $RecID);

(I forgot the "-" before recid in the previous email)

Alex Gates wrote:
> Hi John -
> 
> In order to edit a record, you need to pass the Record ID of that record.
> 
> You'll want to add a line like this:
> 
> $request->AddDBParam('recid', $RecID);
> 
> note: You'll have to set $RecID to the appropriate Record ID before this 
> line.
> 
>  From your question, however, it seems that instead of doing an edit, 
> you want to create a new record. ("I would expect the data passed from 
> the form to be inserted into FM.") If this is the case, you don't have a 
> Record ID yet, so you don't need to worry about that. Simply change 
> FMEdit() to FMNew()
> 
> 


[The entire original message is not included]


More information about the FX.php_List mailing list