AJAX values converted to PHP Variables?

You would save the Ajax response to the database.

Here are a few tutorials that might be helpful:

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)