Hi
How to do someone like this in CF8 ?
CF7 SQL Action sql_data1 :SELECT username FROM #__users LIMIT 2;
CF7 SQL Action sql_data2 :SELECT username, name FROM #__users WHERE username IN ('{var.join[', ']:sql_data_1.[n].username}');
Thanks
Hi Colnem
I have updated the tutorial here:
You can use either PHP or the SQL Code behavior in the Read Data action
Thanks
But how I do that in message action?
<p>{var.in:read_data_6.[n].id}/</p>
.[n]. doesn't work in CF8...
Is there a manual for CF8 like CF6?
Thanks
Hi
I Want to have this in a HTML view (CF7 Syntax):
{var.pr:read_data6}
Array( [0] => Array ( [model] => Array ( [id] => 2010 [label] => Billard )
)
[1] => Array ( [model] => Array ( [id] => 2030 [label] => Jeux de société )
)
)
{var.pr:read_data6.[n].model.id}
Array( [0] => 2010 [1] => 2030)
Is it possible with CF8? {var.in:read_data6.model.id} doesn't work.
Thanks
Hi Colnem
Unfortunately this syntax is not available in v8, you will need to use PHP code to loop over the array and get the id value of each record.
But the next update will support this:
{var.array:read_data14.#.name}
which will do the same thing
No problem
