Hi,
Taking advantage topido this, I am also with this problem and also mentioned another problem that speak below.
First of Brazil and I do not know well the English and so I am using the translator to
google.com.
The poll is great, but I am having problems in the installation. I did as instructed, I
acknowledged some errors in the code, correct and still not worked.
For example file: ajax-poller.html he does not have codes in php? Then he must be a. PHP,
then transformed into a file of the type php and some errors if they were.
Second, after that the poll not choose the data in the DB.
Ex:
http://www.gurupifacil.com/enquete_nova/ajax-poller.php
Ex in the code:
<?
/ / Retreving poll from database
$ Res = mysql_query ( "select * from poller where ID = '$ pollerId'");
If ($ inf = mysql_fetch_array ($ res)) (
Echo "<p class=\"pollerTitle\">." $ Inf [ "pollerTitle "]."</ p>" / / Output poller title
$ ResOptions = mysql_query ( "select * from poller_option where pollerID = '$ pollerId'
order by pollerOrder") or die (mysql_error ()) / / Find poll options, ie Radio buttons
While ($ infOptions = mysql_fetch_array ($ resOptions)) (
If ($ infOptions [ "defaultChecked"]) $ checked = "checked"; else $ checked = "";
Echo "<p class=\"pollerOption\"> <$ checked input type = \" radio \ "value = \". "$
InfOptions [" id "]." \ "Name = \" vote [. "$ Inf [ "ID "]."] \" id = \ "pollerOption." $
infOptions [ "id"]. "\"> <label for = \ "pollerOption." $ infOptions [ "id"]. "\" id = \
"optionLabel." $ infOptions [ "id"]. "\ ">".$ infOptions [" optionText "]."</ label> </ p>
";
)
)
?>
Dai thus appears only the button to vote and the options to vote are not loaded.
If someone can help, can respond in English to do that after translation.
Tanks.
Anderson Dorneles
From Brazil