I am trying to pass variables via ajax to a PHP script that will run a MySQL query. However, I keep getting the error 404 Not Found with: \"http://myurl/database/%5Bobject%
Evan is right, tryy sending your data an an object, jquery will take care of properly URL encoding the values. String concatenations can be problematic in js.