SOLVED: Get db join element value inside a repeat group

Status
Not open for further replies.

dimoss

Well-Known Member
Hi,

i have a dbjoin element inside a repeated group.
Knowing that every repeat group is part of an array of values and the data in a dbjoin element will be an array, how is it possible to get the raw value of each instance of this dbjoin element using a php form plugin?
Thanks.
 
After a lot of searching and digging the forum I managed to get the values comma separated using:

PHP:
$pid = $data['fab_teams_47_repeat___player_id_raw'];
$results = array();
foreach ($pid as $key => $val) {
   $results[] = $val[0];
}
$pids = implode(",", $results);
return $pids;

Just in case someone else need it.
 
Last edited:
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top