g1smd

msg:4277041 | 9:02 am on Mar 5, 2011 (gmt 0) |
HTML helps you lay out the content on the page, and style it. To have a voting system, you will need to run some PHP code on the server to deal with the counting. That code will either need to store data in a file on the server, or it will need a dash of mySQL code to store and retrieve the data in a database. The code will also need to be protected from page refreshes artificially increasing the vote: by letting each IP address vote only once per day, setting cookies etc. Javascript is NOT the solution to the problem as that runs individually in each person's browser.
|
Jnet9102

msg:4277058 | 9:52 am on Mar 5, 2011 (gmt 0) |
Thanks. I will try to look for some information on PHP, I have only worked with PHP on Wordpress. Hopefully I can figure out what I need to do.
|
g1smd

msg:4277059 | 9:57 am on Mar 5, 2011 (gmt 0) |
There are likely fragments of code you can use already published somewhere. I'd take a look at code.google.com and other such places. They could save you a lot of work. I recently needed some code to read a CSV file and parse it into an array. I found what I needed within an hour, and had it working within a day.
|
Jnet9102

msg:4277067 | 10:41 am on Mar 5, 2011 (gmt 0) |
Awesome! I actually usually use websites like w3schools or whatever comes up in a Google search... I will try code.google.com. I suppose I can trust your judgement, you've been here for nearly 9 years!
|
tangor

msg:4279283 | 1:47 am on Mar 10, 2011 (gmt 0) |
An alternate to a PHP approach is Perl. Will do what you're seeking and many examples on the web.
|
Leonard0

msg:4279911 | 10:05 pm on Mar 10, 2011 (gmt 0) |
There are lots of ratings scripts available free on the web. A Wordpress or other CMS plugin would probably be your best bet. There are also rating scripts for jquery and Google's Friend Connect.
|
|