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 
advanced poll site goes to demo page with code???  XML
Forum Index » Support Forum
Author Message
Anonymous



I installed the poll through CPanel (Fantastico) and the admin area works OK. I can create a poll etc but when I go to my poll site, 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/poll";

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.

Any ideas what is wrong??
Auron
Expert
[Avatar]

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

The polls don't exsist.

Either you deleted them on your didn't run install.php
to create the database, tables and the demo polls.

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