this is my first post so if im missing anything please be patient :).
im using the go-debug.js library from GoJS to make some diagrams on the browser but im running an i
You don't need to json_decode
this JSON, because it's becoming an Object.
Remove this part:
$directions = json_decode($_POST['json']);
var_dump(directions); // here's an error btw
And change it to this:
$directions = $_POST['json'];
Then just save it in text mode.
Don't forget to escape it:
$sql = "INSERT INTO c_map
(ref_num, members_id, title, description, ingredients)
VALUES (NULL, '$session_id', 'title', 'description',
'".mysql_real_escape_string($directions)."');";