Hi I\'m trying to insert the json array into my MySQL database. I\'m passing the data form my iphone there i have converted the data into json format and I\'m passing the da
$json = file_get_contents('php://input'); $obj = json_decode($json,true);
I think you are passing the wrong variable. You should pass $json in json_decode as shown above.
$json
json_decode