Jump to content

voting system - database setup?


nikefido

Recommended Posts

Your best bet would be to download some of the more popular voting scripts and study their code/database design.  You would have to be more specific on how you want it to work.  Is it public voting or do you require a user to be logged in to vote?  Things like that.

It depends on what information you are trying to save. If you simply want a poll and no other information, it makes no sense to save each individual vote, but if you have a user system where a user can vote on multiple polls and want to save that information, you probably want a separate table to store who has voted, but the poll itself probably doesn't need anything more than an update.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.