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? Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/246412-favorite-rating-beginner-question/#findComment-1273020 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.