Hey there,

I'm wondering whether there's a way to write a piece of PHP data to a MySQL database without refreshing the page. Here's what I'm trying to do:

I have a website where I make people have to click on a "Say thanks" link before being allowed to view a certain bit of content on each post. Now, it's a bit annoying when the page has to call a function each time and refresh the page. Is there a way to write to the database and display the content without having to refresh the page? How does Digg do it on the comments page when you give a thumbs up or down to a post?

Thanks!

    You should search for AJAX, it is a way for JavaScript to contact a server and changing the page without having to reload the page.

      Write a Reply...