I'm trying to install a voting script on my page to rate different shows. I like this script because it shows the results without having to access them by clicking a button.
However, the way the script is configured, it can only handle one poll per page, otherwise, different polls on the same page record their results to the same database file.
For an example, go to the middle of the page here:
http://www.inflash.com/matrixspoof2/index2.php
I've set up two polls there. I've given each poll it's own directory
votehunting/vote.php
votehunting/vote.dat
and
votesticks/vote.php
votesticks/vote.dat
Here's the code:
http://www.inflash.com/matrixspoof2/vote.txt
I access it in the html page with a simple include("votehunting/vote.php"😉
The only change I made was to the line of code at the top:
$ficdest=$ficdest[0].".dat";
to this
$ficdest="votehunting/vote.dat";
in an effort to have the poll resutls separated. I don't know how else to set it up to get each poll to have it's own results, but obviously how I've set it up isn't working. And also, perhaps just as obviously, I'm new to php.
Thanks for any help!