i want to create a poll/vote for my website.....
the users should have registered.
i want a user to vote only once.
should i store their username in the database. if so how can i do it effectively? i am using db2.

Yes you should have table where you list all registered members and keep true/false depending if their voted or not. Question is do you want to keep track of single pool at any time, multiple, do you want to keep history etc? Everything is possible with proper planning...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.