Page 1 of 1

Error in Poller ( Select from Table )

PostPosted: Wed Mar 26, 2008 11:25 pm
by andergpi
Hello,
Sorry post a lot, more discovered something that vaia help someone to help me. I was reading the forum, and changing two variables in select, discovered that the script does not find the data for this reason:

$res = mysql_query("select * from poller where ID='$pollerId'");

Changing for this:

$res = mysql_query("select * from poller where ID='1");

and,

$resOptions = mysql_query("select * from poller_option where pollerID='$pollerId' order by pollerOrder")

for,

$resOptions = mysql_query("select * from poller_option where pollerID='1' order by pollerOrder")

result: http://www.gurupifacil.com/enquete_nova/ajax-poller.php

It shows the data from DB.

Also an error occurs in the implementation of the ajax, comform also read here in the forum and asked for change:

document.forms[1]

For

document.forms[1]

But not worked.

I await aid.

Anderson Dorneles
From Brazil