Jump to content

Star Rating Script


TheMovieman

Recommended Posts

I want to install a script so users can rate the movies I reviewed. The script I found makes sense but I don't know how to do something.

 

The first step is easy: creating a table for the ratings. Each one will get its own id to go along with the associated item (in my case, review). Ok, what I want to do is use my review id as the id for the rating (so all I have to do is have it call the $id variable I've already set up). How can I copy every review id (I have a dvd reviews table) into the ratings id?

 

BTW, in case its important, there are a total of 4 columns in the ratings table: id, total_votes (default 0), total_value (default 0) and used_ips

 

After that, I think it should be easy (hopefully) as all I have to do is place the appropriate code and direct the javascript paths and such...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...