I am hiring a programmer to help me to debug [url removed, login to view], i want to put a "add to wish list button" to a series of div, class = "imgforplaces_thumbnail" (see my php function), the while loop in php function will then generate a number of div "imgforplaces_thumbnail", i.e. 12. I have tried to var_dump($row['id']); for each different item in the while loop, they have shown i.e. 1,2,3,4,5,6 [url removed, login to view] the add to wish list button, class ="addbutton","deletebutton", when i click on it, will do an ajax call, either Addtobucketlist() or Deletefrombucketlist() (see header). depending on the status of checkifadded(), it will show or hide class "addbutton" or "deletebutton". Now my problem is that when i execute the codes, when i click on the first check button, it simply runs the last check button function!i.e. $row['id']=6.
One thing worth to note is that if i am not using multiple divs, it works like magic! but not when there are more than one div "imgforplaces_thumbnail"