Jump to content

Star rating system?


Fighterlegend

Recommended Posts

Alright, I've been tackling this for a while now..

And I've run out of ideas :/

 

I want to add a 'save rating' function to this: http://fighterlegend.com/effects/star/st.html

 

But I just can't do it..

 

What I want to use the rating system for:

My forums and blog. So users can rate other users forums.

 

 

I came to you guys to help me!

Link to comment
https://forums.phpfreaks.com/topic/180722-star-rating-system/
Share on other sites

Hmm, I haven't gotten really used to PHP..

 

So I would send it via Ajax (or could I use Javascript to connect to a .php file that will then save it into a database) to a php file, which then writes to, I dunno, mySQL, or a .db file?

 

Could I have a bit of help with this? :P

 

 

I know, I sound like a noob at PHP, and that's because I am! I just done simple things in PHP (mostly following tutorials  :D) like displaying a blog post from a blog, writing to an XML file, redirecting if the url is different (I host my friends website also), and some small connection scripts.

Link to comment
https://forums.phpfreaks.com/topic/180722-star-rating-system/#findComment-953637
Share on other sites

well you send the score or rank via ajax, and store it into a database. something like

$score = $_GET['score'];

$query = mysql_query("INSERT INTO score (rank) VALUES ($score)");

 

But i don't know you table structure so I can't be of much more help

Link to comment
https://forums.phpfreaks.com/topic/180722-star-rating-system/#findComment-953885
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.