[FX.php List] fmdelete returns a 1

william.downs william.downs at gmail.com
Thu Oct 22 18:23:19 MDT 2009


Chris, Tim, Dale

many sincere thanks - all a great help.

Chris - I get the bit about the error object - but the second part  
eludes me :

This is correct so far -

     $medLang=new FX($serverIP,$webCompanionPort,'FMPro7');
     $medLang->SetDBData($fmFile,'medLangs');
     $medLang->SetDBPassword($webPassword,$webUser);
     $medLang->AddDBParam('-recid',$recid);

     $medLangResult=$medLang->FMDelete();

     if( FX::isError( $medLangResult ) ) {
echo "error - please inform admin etc";
      }

So what would I do with $medLangResult->lastErrorCode ?

I will actually speak to the client about your point below Webko - I  
like the idea.

Kindest Regards

William

On 22 Oct 2009, at 21:40, Tim 'Webko' Booth wrote:

>
> On 23/10/2009, at 1:06 AM, william.downs wrote:
>
>> Hi there,
>>
>> after a stint with the fm API, I am back to FX.php :-)
>>
>> Using fmdelete to delete a record - which works fine (does delete  
>> the record) - but
>
> As a side-note to the other answers - I don't allow a delete to be  
> run from the web. All 'deleted' records are flagged as not to show  
> in searches, and then checked by an admin later through FM. Learnt  
> that people will always delete something they don't mean to...
>
> Cheers
>
> Webko
>


More information about the FX.php_List mailing list