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
There is no such variable as $data. Try
$data
$obj = json_decode($json,true);
Rest looks fine. If the error still persists, enable error_reporting.
error_reporting