AnsweredAssumed Answered

PHP create record

Question asked by Tom_Droz on Dec 27, 2013
Latest reply on Dec 30, 2013 by Tom_Droz

Hi all


I use dreamweaver with FM plug in. I have used this exact script before with no problems. I am now trying it on a differnt database all FM12. The PHP script correctly creates a new record. However when I look for the record it doesnt show. If I close the database and reopen it it is there. Why is the record not committing? Any ideas.







<?php require_once('Connections/Faith.php'); ?>
$FormAction_add = $Faith->newAddCommand('Temp_Web_Showings');
$FormAction_fields = array
'ID'=>$_REQUEST['ID'] );


foreach($FormAction_fields as $key=>$value) {

$FormAction_result = $FormAction_add->execute();

if(FileMaker::isError($FormAction_result)) fmsTrapError($FormAction_result,"error.php");

$FormAction_row = current($FormAction_result->getRecords());
// FMStudio v1.0 - do not remove comment, needed for DreamWeaver support ?>