SyntaxFix
Write A Post
Hire A Developer
Questions
Server side:
if (mysql_query($query)) { // ... } else { ajaxError(); }
Client side:
error: function() { alert("There was an error. Try again please!"); }, success: function(){ alert("Thank you for subscribing!"); }