Updating a counter with AJAX
The counter at the bottom of my website needs to be updated dynamically using the count() from MySQL and PHP. Now, how do I update this on the page without the user having to reload? I'm a bit confused on how to have JavaScript execute PHP code without forwarding the user to the new page.
Anyone know how this is done?
|