|
-
Feb 21st, 2004, 12:21 PM
#1
Thread Starter
Lively Member
vote only one time per link
hello,
I need your advice:
I am building a website that contains alot of links in a database.
the website shows the links and allow the users to vote for each link.
that means the links are set up in a table and each links has two icons:
one for "good" one for "bad" if the user clicks on the "good" it will count his vote and increment it by 1. and the same goes for the "bad" too (if the user click on the "bad" it wil increment his vote by 1)
and every link shows how many users voted "good" and how many voted "bad".
my question is this:
I only allow to registered users to vote, and I would like to allow them voting only once per link.
what is the best way of doing so?
I thouhjt of cookies but I dont think I can keep so much information on a cookie... no?
(I mean after all I have many links in my database and a cookie is limited in its size no?)
so I thought maybe use a table in the database to keep the voters for each link?
what do you think?
Yair
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|