slupert Posted September 4, 2011 Share Posted September 4, 2011 I have followed this tutorial on how to make a favorite rating for my website: http://www.9lessons.info/2009/09/favourite-rating-with-jquery-and-ajax.html Demo: http://demos.9lessons.info/love.php Script: http://demos.9lessons.info/url.php?url=http://www.box.net/shared/cpxzv6hjl3 I'm new to jQuery, php and Ajax, but I managed to get it to work. The problem is that it now shows all the images in the database. How can I get it to only show a specific img_id? Link to comment https://forums.phpfreaks.com/topic/246412-favorite-rating-beginner-question/ Share on other sites More sharing options...
will35010 Posted September 26, 2011 Share Posted September 26, 2011 You can probably change the below. From: $sql=mysql_query("select * from images"); To: $sql=mysql_query("select * from images WHERE img_id = 'someid'); Be sure to replace someid with an actual image id. Link to comment https://forums.phpfreaks.com/topic/246412-favorite-rating-beginner-question/#findComment-1273020 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.