Fotiman - 6:56 pm on May 22, 2012 (gmt 0)
The balance doesn't update until the page is refreshed.
That would seem to defeat the purpose of using AJAX then. :)
Another method for refreshing would be:
window.location = window.location;
Also, one more bit of advice... mysql_escape_string has been deprecated and replaced with mysql_real_escape_string [php.net].