DB Read Syntax

JerseyGirl 06 Aug, 2017
Hi,
I have been trying to use a DB Read in CFV5 to create the data needed for emails in the "On Verified" section of the IPN listener action.

It's only on table, so I set multiread and Enable Model ID to "no." In my PayPal redirect, I used invoice=id in extra parameters. (Also tried custom=uniq_id but that didn't seem to pass any data - custom was blank).

I used this for my condition:
< ?php return array('Data.id' => $form->data['invoice']);
?>

I was trying to say "give me the record from the DB where ID=Invoice" but instead of matching the correct record, it always gives me the data from the first record. Yet invoice does contain the ID of the record I want.

Is the syntax correct for my condition? What else could I be doing wrong?

Thanks for your help!
Max_admin 07 Aug, 2017
Hi JerseyGirl,

Is it possible to use v6 ? if yes then please install the latest update and send me a message using the contact page, I will then send you a PayPal form backup file with all the basic config, the other feature is that v6 makes many thing more easier, like passing/getting variables data.

Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.