View Single Post
Old 10-14-2010, 08:11 AM  
_Rush_
Confirmed User
 
_Rush_'s Avatar
 
Join Date: Dec 2006
Location: Buenos Aires
Posts: 742
Quote:
Originally Posted by potter View Post
I'd want to use jquery to be honest. With .click() on the #linkid to add one to the number of "likes".

? Store # of likes in some type of database.
? On page load, php grabs database number, and sets it as variable and prints it to the little link on the page stating how many likes it has
? Use jquery .click() to run a function on the like link, which has ajax update the database number and refresh the "like number" on the page without reloading the page.

That's going to be your best and easiest solution. Sorry I don't have time to write it up myself. Maybe at the end of the day if no one else provides you with the code.
This could help me for new "likes", but not for existing ones. Correct?

Quote:
Originally Posted by CaptainHowdy View Post
No lo sé, solo estoy seguro de que mañana RUSH la va a romper...
Sí que sí. Ya tengo mi entrada
__________________
No sig.
_Rush_ is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote