Advertisement

Error in Poller ( Select from Table )

Moderators: Calcifer, slothy

Error in Poller ( Select from Table )

Postby andergpi » Wed Mar 26, 2008 11:25 pm

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
andergpi
 
Posts: 2
Joined: Wed Mar 26, 2008 8:48 pm

Return to General questions regarding AJAX scripts

Who is online

Users browsing this forum: No registered users and 5 guests

cron