Here is javascript code:
var jsonData = JSON.stringify(testObj);
$.ajax({
url: '../php/functions/spesific_field_set.php',
type: 'post',
data: {fieldObjArray: jsonData, tableName: fieldTableName}
}).always(SpesificPropertiesSet);
and here is the php:
$updates = mysql_real_escape_string($_POST['fieldObjArray']);
$updates = json_decode($updates, true);
$tableName = mysql_real_escape_string($_POST['tableName']);
echo $updates;
What testObj is an array of object, how should I pass it to the php? and how should I access the data within this array of objects on php side?
thanks!!