Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Voting system one vote each person each day

    I am making a toplist, to practise with MySQL and PHP. I've already managed to make a index, and add new "groups" to it.

    But the problem I have now is, how do I make a vote system(since the list will be based on votes), which everyone(including guests). Can vote once in 24 hours, this will probably based on IP-address, which is more secure then cookies. But I know it isn't 100% secure, but that doesn't mind.

    I've a table whith colums:

    id, groupname, short_description, description, banner, votes.

    I guess this isn't really in use for the vote system. But could someone explain me or help me with it or give a push in the right direction.

    Thanks

  • #2
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,960
    Thanks
    120
    Thanked 76 Times in 76 Posts
    I just made a system, so you can look. See icons above image:
    http://agrozoo.net/jsp/Galery_one_im...754a68a0a423a9

    1. Only members
    2. green stripe marks current (not avg, more complicated) vote
    3. clicking changes (possibly he/she made mistake)vote for current user, So, only one vote/user
    4. TODO show current user vote.
    Found a flower or bug and don't know what it is ?
    agrozoo.net galery
    if you don't spot search button at once, there is search form:
    agrozoo.net galery search

  • #3
    New to the CF scene
    Join Date
    Nov 2011
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well I mean more something everytime someone votes the number increases by one, so first vote means 1, second 2 etc. It should increase by one each time someone votes. Since the list is based on votes, most votes on top, less lower on page or another page.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •