{jQuery+PHP+MySQL} Add/Remove dynamic button

{jQuery+PHP+MySQL} Add/Remove dynamic button

Hi everyone!

I'm new to jQuery and i need a little help about something i want to do with the power of jQuery.

I have a list of songs displayed with a button "Add to wishlist" for each song. When it is clicked, i want it to change CSS style so the image will be "Remove from wishlist".

When we add or remove a song in our wishlist, it will add or remove an entry in the MySQL table WISHLIST (structure: id, id_member, id_song).

And at the top of the page i have a counter (Number of wishs : 0) and i want this number to increase/decrease...

If the member go to another page and come back, the songs in the wishlist MUST remain active (Showing: "Remove from wishlist")

Currently in my CSS sheet i use  .wish a, .wish a:hover and :active to display three different button states.

It's a kind of shopping cart script...


If anyone could help me with that, i really dont know how to do this...

Thanks for any help in advance!
Have a nice evening!