[FX.php List] writing data to table

John Funk jfunk at criticalsolution.com
Wed Apr 15 13:52:44 MDT 2009


Thanks Dale, This is what I was planning on. I just though there might be a
function to edit/add no mater what.
Thanks again.


On 4/15/09 11:04 AM, "Dale Bengston" <dbengston at tds.net> wrote:

> Hi John,
> 
> I do this by storing record ids in hidden form elements corresponding to input
> collected from the user. If there's a value for record id, it's an "edit." If
> the value is absent, it's an "add."
> 
> Dale
> 
> On Apr 15, 2009, at 10:16 AM, John Funk wrote:
> 
>>  I know:
>>  FMNew() creates records
>>  FMEdit() modifies
>>  ­recid is required to edit data
>>  
>>  Is there a simple way to write data and if there is not a record make a new
>> one?
>>  In other words to emulate FileMaker¹s ability to edit/create records through
>> a defined relationship? And not duplicate any?
>>  I am trying not to have to check each element of an array to see if there is
>> a record in FM. 
>>  So if there is a record, edit, if not created it with the same function.
>>  
>>  John Funk
>>   
>>   _______________________________________________
>> 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20090415/01ab3725/attachment.html


More information about the FX.php_List mailing list