it would first get the value of true or false for it already being bookmarked by my function $Users -> isFavorite($id);
and would update with $Users -> updateFavorite($id); (both written in php) all i need is the javascript to toggle this and to make it switch the icon from let say no.png to yes.png
if someone could help me out i would be greatful
