How to save an users vote on a particular comment? For example if someone likes a comment posted on the site he/she will click the (+) button or other way will click the (-) button. How could i save this information to mysql, so that when the user come back to the site I can show his/her vote on the comment? Something like facebook comment like system. Should i create a new mysql table to record them all? Assuming the user is already registered user.
Benim geçerli comment tablo
id | date | userid | page | comment |
Ben gibi bir şey bekliyoruz
$username - $date
$comment <no.of likes> likes, <no.of hates> hates.