Warning: mysql_query() [
function.mysql-query]: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) in
/home/imztry/www/dhtml/054/054.php on line
62
Warning: mysql_query() [
function.mysql-query]: A link to the server could not be established in
/home/imztry/www/dhtml/054/054.php on line
62
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in
/home/imztry/www/dhtml/054/054.php on line
63
Getting poll results. Please wait...
This is an example of a poll script. It uses Ajax(Asyncron Javascript And XML) to send your vote to the server. Ajax is also used to return the results from this poll to your browser.
In this demo, I haven't limited the number of votes per user. This is something you can implement by setting the Javascript variable
useCookiesToRememberCastedVotes to true in the script or by implementing your own method.