field;but this not work for my or $MyRow is not defined.Where define?? How?thanks!!javierp."> how pass Data ccv5 to php vars - Forums

Forums

how pass Data ccv5 to php vars

jhaviro 16 Dec, 2015
Hello again.

i have a new question for help me.

My Model is: "orders"
in my DB save fields data format "data1,data2,data3" (string with commas)
example:
{orders.myData1} value is "data1,data2,data3"
how pass value to php var?

i see in this forum:
$myVar = $MyRow ->field;

but this not work for my or $MyRow is not defined.
Where define?? How?

thanks!!
javierp.
GreyHead 16 Dec, 2015
Hi javierp,

In CCv5 the row data is in the $row array so $row['orders'] will have the orders for the current record.

Bob
jhaviro 16 Dec, 2015
Yess!!! Great!!!
Work, i have access to data array.

$row['orders']['my_fieldDB']

Thank you very much!!
javierp🙂
This topic is locked and no more replies can be posted.