how can I get the variable value I need, I have selected comments and like values through MySQL and have created a like button, but when I click like, it adds the like to the last selected/posted variable value, so it likes the last comment generated. How to I get it to like the one I wanted and not the last selected?
Example:
I have comments with id’s (1,2,3) when generated it orders them in that order (1,2,3) when I like comment with id=2 it likes comment 3 because it was last generated so the varible id has a value of 3 at the time I liked comment 2.
I don’t make any sense, I hope you guys get it, please help???
note.php
note.php (body):
like.js
like_add.php
like_get.php
like.php