If you are not registered or logged in, you may still use these forums but with limited features. Show recent topics
  [Search] Search   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [FAQ]  FAQ 
[Register] Register / 
[Login] Login 
A different Advanced Poll problem--help  XML
Forum Index » Support Forum
Author Message
Anonymous



Now I may be really dumb but I can't get this to work. My installation was thru Fantastico using CPanel. I can create a poll etc in the admin panel but when I go to my URL address assigned to view the poll, I get this:

Demo 1 Demo 2 Demo 3 Demo 4 Demo 5 Demo 6

--------------------------------------------------------------------------------

<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>

--------------------------------------------------------------------------------
<?php

/* path */
$poll_path = "/home/tsesyeit/public_html/advpoll";

require $poll_path."/include/config.inc.php";
require $poll_path."/include/$POLLDB[class]";
require $poll_path."/include/class_poll.php";
$CLASS["db"] = new polldb_sql;
$CLASS["db"]->connect();

$php_poll = new poll();

/* the first poll */
echo $php_poll->poll_process(1);


/* the second poll */
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(2);


/* the third poll */
$php_poll->set_template_set("popup");
if ($php_poll->is_valid_poll_id(3)) {
echo $php_poll->display_poll(3);
}

?>
Poll ID 1 does not exist. Poll ID 2 does not exist.

Unfortunately, I don't have a clue what to do from here. I have read Auron's posts but they don't seem to apply.

Help

Don
Auron
Expert
[Avatar]

Joined: 23/06/2003 22:02:17
Messages: 1053
Offline

Did you read them really???

You include the poll on your page those are just the demo polls that get
installed with advanced poll. There are loads of threads where i've explained
how to include the poll on your page.

Auron

Visit my site @ www.ragnaru.com
Adv. Poll Install Guide NOW BACK ONLINE! (And also rather out of date I would of thought)
[Email] [WWW]
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum