473,465 Members | 1,892 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

[CMS] Storing rates in the database

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?

Jun 8 '07 #1
1 1788
we******@gmail.com wrote:
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?
IP's are not unique to a user. Many users can share a single IP (i.e.
via corporate proxy), and one user may have multiple IP's in a session
(i.e. AOL users).
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================
Jun 9 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jane Doe | last post by:
Hi, Besides Pivot (I'd rather wait for the final release), EasyCMS (the navigation bar is static), and CMSimple (all documents saved in a single HTML, so not good for lengthy articles)... do you...
0
by: jonathan.beckett | last post by:
Hi All, I have just made version 0.4.8 of the PluggedOut CMS Content Management System available for download - it's free, and covered by the GPL. It's still very much a work in progress...
3
by: Eddie | last post by:
Hi to all I am building a database to track project expenses information. My database has 4 main tables, Employees, Activity, project info and rates. We add a project and track activities on...
5
by: Eddie | last post by:
I have an Access database that tracks project information. The database is very simple, except for 1 small aspect. Some background: 4 Tables - Project information, Employees, activity and pay...
1
by: Zurghew | last post by:
Hello all, I have just created a database (partially) which will bill customers for work done. However I am stuck when it is comes to different rates for different works. REQUIRED: What I...
7
by: Echo | last post by:
I am going to start working on a church website. And since I like python, I decided to use WSGI. However, I later found out about all the different CMS's in php. So I wondered if there where any in...
6
by: JM | last post by:
I have never used a (content management system) CMS before but I need one for my internship as a webdeveloper. Requirements: runs on Apache, linux or unix, MySQL and PHP (maybe Windows server...
1
by: nitinpatel1117 | last post by:
Hi all, I have a question regarding the protection of software that has been built inhouse. Basically, i've built an inhouse CMS using PHP, all web builds that were done for our clients were...
2
by: strychtur | last post by:
Hi All, Right now we get a daily email with the current currency exchange rate in it. Then someone copies that data into a SQL Sever table every day. I am looking to automate this process. The...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.