PDA

View Full Version : Creating simple rating system


liquid_steam
07-04-2003, 12:09 AM
Okay.

I want to create a very simple rating system. User chooses from a drop down menu 1 to 10 and the result is shown next it.

The catch is i don't know about PHP or MySql. But i've been at this for several hours and i'm a fast learner.

If any of you have heard of it i am trying to use the free RateIt! script availble from http://www.skintech.org/rateit/install.php

But it keeps going on about creating a MySql table. a) i don't know how and b) i don't even konw why, what the table is used for. perhaps if i knew this i could understand it better.

could somebody please help me out.
thanks a bundle
timmy

raf
07-04-2003, 12:34 AM
Please, do not crosspost:

http://www.codingforums.com/showthread.php?s=&threadid=22724

do you know any other server side scripting language (ASP, Java, Perl, ...)
I assume you just wan't to display the average rating. No ? Then you don't need a MySQL database for that. You can store the average and number of votes in a textfile and read and write from that. But just post a thread for that in the server side scripting language that you will use to get your script running

But it keeps going on about creating a MySql table. a) i don't know how and b) i don't even konw why, what the table is used for. perhaps if i knew this i could understand it better.

like i said abov, you don't really need a db. Installing MySQL server and getting it running is way to much hassle for what you need. It would also mean that you need to host your site somewhere where you have MySQL support.
I assume they use the table to store the average rating and number of votes that were enterd. By using a table, you could have ratings on hundreds of differet things in your site, and you'd be able to store info about the ratings (when started, for which product, which users rated it (using the IP or so) etc .
But if you don't need all that, a regular textfile is fine.

Jeewhizz
07-04-2003, 02:42 AM
This is better off posted in the PHP forum, and hence i'll close this one. MySQL does play a part in this, but the PHP coding itself is what makes the magic :)

Jee