subscribe/unsubscribe to/from article using php/ajax
I'm using a news script. Users can login and submit articles. Now I like to give subscribe/unsubscribe feature per articles to the logged in users so they'll receive emails if there is any changes to the articles. I've created a table with 2 fields. userID, articleID. now i want to have subscribe/unsubscribe button like submit to facebook/twitter buttons. how can I do this without page refresh. If the used subscribed to the news, unsubscribe button should show there.
How can I do this?