I dont have any control over the PHP code here is wha the doc says:
Notice the array in the 3rd argument. ASP.NET does not have an "array(=>)" object. No matter what I pass the PHP side returns an error
recordUpdate:
recordUpdate(public_id,[contact_id],data)
This function will update all data for a record that is not associated with a one to many record. You must put your public_id or you will get an access error. If you put a contact_id into the function then you will update a record. If the contact_id is blank, then you will insert a new record. The data variable is an array of data you want to update using the DB name as the key.
An example of this function would be:
Insert:
$c = recordUpdate('public','',array('firstname'=>'John',
'lastname'=>'Doe'));
returns:
$c = “new contact_id”
$c = recordUpdate('public','1',array('firstname'=>'John',
'lastname'=>'Doe'));
returns:
$c = 1
If an error occurs, then recordUpdate will return a text message trying to explain what went wrong.