Jump to content

This topic is 5434 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted (edited)

dear fm gurus

i want to add new record through php using fx..

in my fm layout, the fields are from 2 different tables..

i made explicit field name adddbparam in my php to point the field from other table. it worked before but i dont know why right now it doesnt.


$insert = new FX($serverIP, $webCompanionPort, $dataSourceType);             

$insert->SetDBData($dbName,$layoutName);          

$insert->SetDBUserPass ($webUN,$webPW);                	



$insert->AddDBParam('FirstName', $fname);

$insert->AddDBParam('LastName', $lname);		

$insert->AddDBParam('EmailAddress', $email);		

$insert->AddDBParam('BusinessPhone', $phone);	

$insert->AddDBParam('Reservation_Information::check_in_date', $checkin);	



$ReturnedData = $insert->FMNew();

if i remove the $insert->AddDBParam('Reservation_Information::check_in_date', addslashes($checkin)); line, its working..so, the problem is only the relational table.

any idea? please help

Edited by Guest

This topic is 5434 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.