dcsimg
www.webdeveloper.com
Results 1 to 5 of 5

Thread: Voting Bar Chart

  1. #1
    Join Date
    Nov 2003
    Location
    Coventry
    Posts
    38

    Voting Bar Chart

    Hiya guys,

    I want to be able to create a little voting system on my radio website so that people can choose a 'tune of the week' or similar.

    I want them to be able to vote, and then a bar chart will automatically work out the new votes and display them in a bar chart (I want the bar chart to be permanent so that it can be seen at all times by visitors to the website, not just when someone votes and then for it to pop-up to show the results).

    Does anyone know how it can be done, or even if there are any free versions available from somewhere on the internet?

    Thanks in advance guys!

  2. #2
    Join Date
    Nov 2003
    Posts
    655
    Yes, it can be done. I've done it using ASP.NET to generate the graphic.

    Use a database to store the survey data and generate the graphic on the fly. Use an IMAGE tag and set the URL to the page that generates the graphic, adding parameters on the end if the graphic generating page needs to be flexible (Example: /barchart.aspx?wide=100&high=50&survey_id=12).

    I know it's also possible using PHP, though I have no PHP experience.

  3. #3
    Join Date
    Nov 2003
    Location
    Coventry
    Posts
    38
    Cheers mate,

    I'm not very experienced beyond HTML though, so that sounds a bit complicated to me lol.

    I don't think my web host supports ASP either - they support everything else like PHP, etc but for some reason, they don't allow ASP

  4. #4
    Join Date
    Jan 2004
    Location
    Melbourne, Australia
    Posts
    5,298
    ASP only runs on Windows servers (MS way of killing competition), so if you are running a Linux server you cant use it. So I would say that you are using a Linux server.

    No need to swap servers and pay more or anything, though. You can definately write your bar chart in PHP or CGI.

    Here is a PHP bar chart/graph generator: http://www.phpclasses.org/browse/package/1567.html

    And here is a voting system: http://www.planet-source-code.com/vb...d=267&lngWId=8

    Regards,
    Andrew Buntine.

  5. #5
    Join Date
    Nov 2003
    Location
    Coventry
    Posts
    38
    Yeah, i've since discovered that I am using a linux server - hence the reason that I can use ASP then.

    Thanks for your help Buntine - i'l see what I can come up with using that. Thanks very much indeed

Thread Information

Users Browsing this Thread

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

Posting Permissions

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



Recent Articles