Reply to [CMS] Storing rates in the database

Your name:

Reply:


Posted by webcm123 on 06/08/07 15:56

I'm looking for a good method of securing ratings. Cookies lock isn't
sufficient. In addition to cookies I would need something else. I'm
introducing some ways.

-= Storing rates inside seperate tables =-

Seperate tables (artrates, filerates, imgrates) will contain:
ID of item | rate | user | IP

1 rate = 1 record. Field USER will filled if only registered users can
rote. Otherwise - if guests can send their rate - IP address.

This table can even contain a lot of rows.
1000 rates * 100 articles = 100 000 records

ADV: Users can correct their rate.


-= Storing only last IP =-

Perhaps, Mambo does that (it results from rating table's structure).
Every item (e.g. article) = 1 record. Even 1 table can br used (but
1000 items = 1000 records). However, it's possible to create 3 tables
as in the previous way.

ID of item | avg | amount of rates | lastIP

2 users with other IP can rate how many they want (even by changing
session ID).


-= Middle solution =-

Similar as the previous, but more than 1 IP or ID of user would be
stored in the last field of a table. Amount of rates could be set in
administration.


What do you think about it? Which solution is the best?

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация