DB structurefor toplist - best way?

What would be the best way to make my db structure for a toplist ? Having each vote create a new record in the database then count them all by IP to collect total votes for each site or use one record for each site then update the votes with something like votes +1 for each new vote ?

Hope someone can help me :slight_smile:

one table for the things your users are voting on (sites?)

then another table for the votes – columns are siteid (FK), userid (FK), vote(plus/minus), with the first two columns being the PK

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.