Hello, Could somebody give the direction where to look or how to do following:
I have 5 text fields in my CF6 form:
Name
Surname
Birthdate
Code
Number
That match DB table 'DBsaraksts' column names.
I need the code? or some CF6 action/event or whatever (I cannot figure out) to look for the three first fields to mach in DB table and return the Code and Number from the row.
I have managed to perform DB read action and got the array of all DB table records:
Array
(
[read_data4] => Array
(
[log] => Array
(
[0] => SELECT `Kodi`.`Name` AS `Kodi.Name`, `Kodi`.`Surname` AS `Kodi.Surname`, `Kodi`.`Birthdate` AS `Kodi.Birthdate`, `Kodi`.`Code` AS `Kodi.Code`, `Kodi`.`Number` AS `Kodi.Number` FROM `DBsaraksts` AS `Kodi` LIMIT 10000;
)
[var] => Array
(
[Kodi] => Array
(
[Name] => Janis
[Surname] => Berzins
[Birthdate] => 21.01.2001.
[Code] => 23465768
[Number] => JB2345
)
)
)
)
What next? Some PHP code? Where? Or jQuery? How?
Thank you in advance -
Elita
I have 5 text fields in my CF6 form:
Name
Surname
Birthdate
Code
Number
That match DB table 'DBsaraksts' column names.
I need the code? or some CF6 action/event or whatever (I cannot figure out) to look for the three first fields to mach in DB table and return the Code and Number from the row.
I have managed to perform DB read action and got the array of all DB table records:
Array
(
[read_data4] => Array
(
[log] => Array
(
[0] => SELECT `Kodi`.`Name` AS `Kodi.Name`, `Kodi`.`Surname` AS `Kodi.Surname`, `Kodi`.`Birthdate` AS `Kodi.Birthdate`, `Kodi`.`Code` AS `Kodi.Code`, `Kodi`.`Number` AS `Kodi.Number` FROM `DBsaraksts` AS `Kodi` LIMIT 10000;
)
[var] => Array
(
[Kodi] => Array
(
[Name] => Janis
[Surname] => Berzins
[Birthdate] => 21.01.2001.
[Code] => 23465768
[Number] => JB2345
)
)
)
)
What next? Some PHP code? Where? Or jQuery? How?
Thank you in advance -
Elita