AnsweredAssumed Answered

PHP and setField

Question asked by Polarpro on Nov 10, 2011
Latest reply on Nov 11, 2011 by Polarpro

Hey,

 

In my PHP script I use some steps to edit a field in my FileMaker database. Everything works fine but writing into this filed. Here is the part of the code that does not work:

 

...

$insert = $fm->newEditCommand('PHP_Layout', $_REQUEST['id']);

$insert->setField('Url', $url);

$insert->execute();

...

 

The field Url is on the PHP_Layout layout. The variable $url contains an existing value. I checked also if there is really a record id; everything is ok.

Furthermore, I checked if I am allowed to edit the record in the accounts and privileges of the Filemaker file, this seems to be ok, too (as I use the Admin account in this case).

 

Is there anything else that needs to be taken care of when trying to edit a record via PHP?

 

Thanks a lot,

Mike

Outcomes