[FX.php List] Problem with FMEdit

kushal khatri kushal.khatri at gmail.com
Sat Jun 7 19:07:41 MDT 2008


Hi. I've been working with Filemaker/FX.PHP for quite a few months now.
I am using FMEdit function like this in my code :

$edit -> AddDBParam("contact_key",$contact_key);
$edit -> AddDBParam("firstname",$firstname);
$edit_res = $edit -> FMEdit();

where "contact_key" is the primary key in the database. This code shows
error 958. I have seen some snippets online. They use
"-recid" as the field to find the record to be edited. Does that mean i
should have a field named -recid in my database?
If i write the code as :

$edit -> AddDBParam("-recid",$contact_key);
$edit -> AddDBParam("firstname",$firstname);
$edit_res = $edit -> FMEdit();

It gives error 101 i.e. field not present. Please tell me how to use FMEdit.
The way it is shown in tutorials does not work for me.

Thanks,
Kushal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.iviking.org/pipermail/fx.php_list/attachments/20080607/0733b429/attachment.html


More information about the FX.php_List mailing list