Options:
$arraydata = strip_tags(mysql_real_escape_string($_GET['arraydata']));
mysql_real_escape_string adds quotes to the string.
Try take it out for a test, sometimes, depanding on content, it could break your sql query.
I see you use auto incrementing IDs, better make sure you set up your database correct. IE id column needs to have AI enabled (auto increment)
You could perhaps remove `id` and `` from your query to make sure, it isnt needed if you have auto increment.
can you post a capx or a pictue of your ajax call made in c2 ?