It took me all days but I have the voting functionality complete, When the user clicks on the vote button the 'vote' field in the database to the corresponding building is incremented by 1. To accomplish this I used php script vote.php which connects to my database and increments the according value. This line of code I used in flash on the button(as2): loadVars_out.sendAndLoad("http://www.envisionlimerick.phpzilla.net/vote.php", loadVars_in, "POST"); this sends the name of the building as the parameter through the url request.
My problem now is to limit it to one vote per user per building.
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment