Hello,
I'm trying to count values as array from Col but just take one (1), this is my code:
$num_cant = count($data["params"]["attachment"]);
Thanks by your help!
2 Answers
If using multi-file upload feature,
You can use:
$arr = explode(",",$data["params"]["attachment"]
then use count($arr);
You can use
phpgrid_error($data); to see what actually is in $data variable.
This will be shown on edit dialog as error message (to debug)
Your Answer