10 内容
) */ //not work $database->insert("test",$arr); //It work $database->insert("test",[ "UUID" => $arr['UUID'], "content" => $arr['content'] ]); }
Just contacted PHP soon, Google for a long time did not know why, very depressed. I hope the great God can answer, thank you
Reply content:
10 内容
) */ //not work $database->insert("test",$arr); //It work $database->insert("test",[ "UUID" => $arr['UUID'], "content" => $arr['content'] ]); }
Just contacted PHP soon, Google for a long time did not know why, very depressed. I hope the great God can answer, thank you
MySQL does not support directly into the array form, you want to save in JSON format, you have to json_encode the array, a JSON string to save to the database
MySQL cannot store an array object. You have to convert the string into JSON format or other format. By the way, when you add true to Json_decode (), a JSON string is converted to an array object.