• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Birthday Array to String for FileMaker Database

Birthday Array to String for FileMaker Database 11 years 1 month ago #27147

Hi
I am working on adding records to my external filemaker database which I have now successfully achieved, however I am having some issues converting the birthday field.

I grab my field variables with the method suggested in an excellent post on this forum:

// loop through the post array //
// $key is the name/id of your field //
// $value is the value of your field //
*/
foreach($_POST as $key=>$value){
$k = $key; // $k is now =to the id of the field, for example email
$$k = $value; // $$k sets your new variable, i.e. $email, to the value of email on the form
}



and then add the variable to my fields using the FileMaker API as below:


$rec->setField('Email',"$Email");

The problem is with the birthday field as it is now an array. How can I convert this back into a string (using the format DD/MM/YY) seems to only want to create the record when it is in this particular format. (I'm sure there is a way around this but thought it might be easier to convert the birthday field variable).

I am aware that you can use the implode (); function to convert arrays back into strings but not sure where to use it or even if it is the best thing to do in this situation as I am very new to PHP.

I would be very grateful if anyone can help me to answer this situation.

Regards
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!