what is an associative array? |
I was actually already doing that (without the true)
$encoded_data=json_encode($data,true); $endcoded_data= {"survey_compiler":"[email protected]","campaign":"Apple","compiler_relation":"private","admin_email":"[email protected]","year":"2010","employee":"Bandfrom Bossanova","employee_email":"[email protected]","employee_id":"","task1":"","task1_percent":"0","task2":"","task2_percent":"0","task3":"","task3_percent":"0","task4":"","task4_percent":"0","task5":"","task5_percent":"0","task6":"","task6_percent":"0"} and then $params = [ 'TableName' => $tableName, 'email'=>$admin_email, //sort 'year'=> $year, //partition 'Item' => $encoded_data ]; BTW, when I look at it in the debugger, there is a double quote at the beginning and the end. same error "must be an associative array".
proof that an old dog can learn new tricks
|
Messages In This Thread |
what is an associative array? - by richb201 - 08-12-2018, 01:53 PM
RE: what is an associative array? - by donpwinston - 08-12-2018, 03:48 PM
RE: what is an associative array? - by richb201 - 08-13-2018, 12:25 AM
RE: what is an associative array? - by Pertti - 08-13-2018, 12:45 AM
RE: what is an associative array? - by richb201 - 08-13-2018, 01:03 AM
RE: what is an associative array? - by richb201 - 08-13-2018, 01:14 AM
RE: what is an associative array? - by richb201 - 08-13-2018, 01:37 AM
RE: what is an associative array? - by Pertti - 08-13-2018, 02:17 AM
RE: what is an associative array? - by richb201 - 08-13-2018, 02:51 AM
RE: what is an associative array? - by richb201 - 08-13-2018, 03:04 AM
|