Home PHP - Best way to keep track of IPs that voted
Reply: 0

PHP - Best way to keep track of IPs that voted

user551
1#
user551 Published in June 19, 2018, 4:32 pm

I am making a small side project on which guests can vote on some sort of posts with either agree or disagree, then I want to save the IP that voted in the database. I was thinking of saving an array of IP's that voted in the 'posts' table, however that might be insufficient I guess. Would a separate table like the following be recommended?; post_votes: post_id, IP Doesn't matter if the user voted agree or not, as long as the vote is counted they won't be able to vote again. What's the best approach for this? Thanks in advance.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.354047 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO