Anyway, the way to do it is to set up a rating PHP script. It accepts an item and a rating via POST data, and uses that data to call the database. Be sure to check the authenticity of the user. How are we doing? Please help us improve Stack Overflow. Take our short survey.
Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Collectives on Stack Overflow. Learn more. Ask Question. Asked 10 years, 5 months ago. Active 5 years, 11 months ago. Viewed 24k times.
Can anyone tell me how to do this please? Richard Hedges Richard Hedges 1, 5 5 gold badges 13 13 silver badges 38 38 bronze badges. If it were direct access from JS to mysql - then it wouldn't be possible to protect the database from unwanted changes by hackers. So - yes, do that from php, and just perform ajax request to that php script. Do you have any specific questions? Add a comment. Active Oldest Votes. Jimmy Jimmy 1 1 gold badge 3 3 silver badges 7 7 bronze badges.
Jonah Jonah 9, 5 5 gold badges 41 41 silver badges 77 77 bronze badges. The javascript doesn't work. No way to work out why, as it does it silently, as always. Sign up or log in Sign up using Google. Collectives on Stack Overflow. Learn more. Asked 10 years, 1 month ago.
Active 10 years, 1 month ago. Viewed 6k times. Add a comment. Active Oldest Votes. All rights reserved. Other names may be trademarks of their respective owners. VolkerK VolkerK Ariful Islam Ariful Islam 7, 7 7 gold badges 33 33 silver badges 54 54 bronze badges. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog.
0コメント