[FX.php List] fmdelete returns a 1
Chris Hansen
chris at iViking.org
Mon Oct 26 10:31:02 MDT 2009
Yep, Webko pointed out the same thing (and this is the point that is
going to be discussed with the client -- as mentioned below =)
--Chris
On Oct 23, 2009, at 1:35 AM, Gjermund Gusland Thorsen wrote:
> Why should anyone delete at all?
> Are these ghost trolleys for a shopping solution?
>
> For my solutions there is a separate number field toBeRemoved,
> and if that field has the value of 1... nobody sees that record.
>
> ggt
>
> 2009/10/23 william.downs <william.downs at gmail.com>:
>> 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
>>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
>
More information about the FX.php_List
mailing list