Thumbs up and down rating system with jQuery, PHP and MySQL
In this series we take a look at how to create a rating system with thumbs up and down. The ratings will be saved to the MySQL database using PHP PDO class.
I have the same problem, it's like the functions are not working or I don't know, everything show up but I can't do any action (Reset and vote buttons don't work)
Should the files in the "finished" folder that we can download work just like that ? If yes, it is not for me. Your codes are so clean, it would be really nice to have it to learn as much as I can
Hi Sebastian, again great tutorial. Obviously that one has to have a good knowledge of OOP and jQuery as well, but again really good tutorials on your website.
Greetings, Andres.
I found the problem I had running it on localhost, just removed all the first / in the code pointing to files. And I add a ../ before the direction of the sprite img in the .css. Thanks for this tutorial !
I stumbled across your website and I am extremely grateful for your tutorials. I would like to be able to use this on a WordPress platform. Any suggestions on how I can do that since the database is already created. Would I just need to create the rating table? I would like to use it to rate each post.
Thanks!
Hi Jay,
It should be actually pretty easy to use it with Wordpress. You just have to link the id of the post with the rating - same way as you would with comments in the original exercise.
fekri on Tuesday, 20th March 2012
It's a good tutorial, but it doesn't worked with me. I have my page with comments and rating icons, but when I click nothing happens.
Thank you
Reply
Sebastian Sulinski : @designtutorials on Wednesday, 21st March 2012
Hi Fekri,
Can you use Firefox and Firebug to see what might be causing the problem on click?
It definitely works, so I'm assuming you must've missed or misspelled something - it happens to me all the time :)
Reply
mabod on Tuesday, 17th April 2012
I have the same problem, it's like the functions are not working or I don't know, everything show up but I can't do any action (Reset and vote buttons don't work)
Reply
Sebastian Sulinski : @designtutorials on Tuesday, 17th April 2012
Have you completed the whole tutorial?
Reply
mabod on Tuesday, 17th April 2012
Should the files in the "finished" folder that we can download work just like that ? If yes, it is not for me. Your codes are so clean, it would be really nice to have it to learn as much as I can
Reply
Sebastian Sulinski : @designtutorials on Tuesday, 17th April 2012
Do you have it hosted on the remote server so that I can have a look at it?
Reply
Andres : @trustdj1 on Monday, 26th March 2012
Hi Sebastian, again great tutorial. Obviously that one has to have a good knowledge of OOP and jQuery as well, but again really good tutorials on your website.
Greetings, Andres.
Reply
Andy on Friday, 30th March 2012
Awesome dude :D
Reply
Christos : @seogr on Tuesday, 10th April 2012
Hi Sebastian,
Great tutorial as always. Many thanks and greetings from Greece :)
Reply
Sebastian Sulinski : @designtutorials on Tuesday, 10th April 2012
Hi Christos,
Thanks!
Reply
mabod on Tuesday, 17th April 2012
It work perfectly when I upload it on my server, but on localhost it doesn't. Just tested it to show you :p didn't even put in on my serv before.
I don't know why it does not work on localhost, the connection with the db is fine.
Reply
Sebastian Sulinski : @designtutorials on Tuesday, 17th April 2012
I'm not sure why it doesn't work in your local environment. It did work ok on my localhost.
Reply
airoschou on Wednesday, 18th April 2012
Thanks for sharing!
Reply
mabod on Thursday, 19th April 2012
I found the problem I had running it on localhost, just removed all the first / in the code pointing to files. And I add a ../ before the direction of the sprite img in the .css. Thanks for this tutorial !
Reply
Cal : @hanlincal on Tuesday, 24th April 2012
Hey Sebastian,
Thanks for the awesome tutorial! I'll update you once this is implemented on my site :)
Reply
Cal : @hanlincal on Tuesday, 24th April 2012
Hey Sebastian,
I'm trying to echo an image link instead of texts and i keep getting syntax errors like
Reply
Sebastian Sulinski : @designtutorials on Wednesday, 25th April 2012
Hi Cal,
Can you send me your index.php file by email?
I've already sent you an email so you can just reply to it with the attachment.
Reply
Jay on Monday, 30th April 2012
Hi,
I stumbled across your website and I am extremely grateful for your tutorials. I would like to be able to use this on a WordPress platform. Any suggestions on how I can do that since the database is already created. Would I just need to create the rating table? I would like to use it to rate each post.
Thanks!
Reply
Sebastian Sulinski : @designtutorials on Monday, 30th April 2012
Hi Jay,
It should be actually pretty easy to use it with Wordpress. You just have to link the id of the post with the rating - same way as you would with comments in the original exercise.
Reply
Jay on Monday, 30th April 2012
Sebastian,
Thanks very much for the tip. I will give it a try and post the results here, so others may see it. That's of course if I figure it out. :)
Reply