Closed Thread
Results 1 to 7 of 7

Thread: Linking MySQL Database Info to Pages

  1. #1
    rsnider19 is offline Learning Programmer
    Join Date
    Sep 2009
    Posts
    34
    Rep Power
    0

    Linking MySQL Database Info to Pages

    Without giving too much of my site idea away, I want to make a site where users can cast a vote on something and also see others votes as well. Say I have 2 pages, apples and oranges, and you can vote like or dislike on either of them. So you go to the apples page and see 12 people voted like and 5 people voted dislike. Then you can vote. Likewise you can go to the oranges page and see 8 people voted like for oranges and 2 people voted dislike.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Linking MySQL Database Info to Pages

    This is fairly simple, but can be implemented a few different ways. Is your question about how to store the data in the database, how to present it, how to read from the database, or something else?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    rsnider19 is offline Learning Programmer
    Join Date
    Sep 2009
    Posts
    34
    Rep Power
    0

    Re: Linking MySQL Database Info to Pages

    I figure I will be able to set up the "poll" easily, so I would say it is more of a matter of displaying each page's results prior to the voting.

  5. #4
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Linking MySQL Database Info to Pages

    You will need to start with a simple decision: are you going to store each user's vote per item, or just the aggregate for each item?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  6. #5
    rsnider19 is offline Learning Programmer
    Join Date
    Sep 2009
    Posts
    34
    Rep Power
    0

    Re: Linking MySQL Database Info to Pages

    Just the aggregate and to be able to display x amount of votes per choice and % of votes per choice.

  7. #6
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143

    Re: Linking MySQL Database Info to Pages

    I'm not clear on what the question is. You need a simple database to store the data, and a little SQL to get the data out of it. Is it an HTML question, a PHP/ASP/other question, something else?
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  8. #7
    rsnider19 is offline Learning Programmer
    Join Date
    Sep 2009
    Posts
    34
    Rep Power
    0

    Re: Linking MySQL Database Info to Pages

    Well I'm not sure if it is an html question or scripting question. I guess this might help show what I mean:

    www(dot)ratemyprofessors(dot)com/ShowRatings.jsp?tid=335188

    See how there are 17 ratings in all of those categories and then a user can look and see them and then, if her/she wants, can vote as well. I want to be able to do something like not, but it doesn't involve teacher ratings.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 5
    Last Post: 02-17-2011, 02:49 AM
  2. Linking Windows form to SQL2005 Database
    By newguy15 in forum Visual Basic Programming
    Replies: 1
    Last Post: 04-12-2010, 12:16 AM
  3. linking SQL database with C# problem
    By Siten0308 in forum C# Programming
    Replies: 14
    Last Post: 07-02-2008, 03:50 PM
  4. Replies: 12
    Last Post: 03-15-2008, 04:34 AM
  5. Linking a Form to a SQL Database
    By newguy15 in forum Database & Database Programming
    Replies: 2
    Last Post: 12-04-2007, 12:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

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