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 
Inserting Advanced Poll into php page, but not showing up.  XML
Forum Index » Support Forum
Author Message
Anonymous



Hello there, I was hoping I could get some help on this.

I just installed advanced poll, and I looks good. However, whenever I insert the php code the poll does not show up. I'm trying to put it into our homepage, which already has some php in it (a news script, which includes a text file). The news script always executes fine, but it seems like the poll script is just ignored. Is there something I'm missing? I've got:

<?php
include_once "/home/shrubweb/public_html/poll/poll_cookie.php";
?>

At the top, followed by the html for the page. Later on my news script looks like this:

<?php
include("http://www.oftheshrub.com/news/news/news.txt");
?>

And a bit later comes the actual poll script:

<?php
include_once "/home/shrubweb/public_html/poll/booth.php";
echo $php_poll->poll_process("newest");
?>


As I said, the news always works, but the poll never does. Even if I insert an echo statement into the poll script it doesn't show up on the page. However, if I make an entirely new page with only the poll php, it works fine. Seems wierd.

Any help would be appreciated, I'm pretty new to php, so I might be missing something.

-DR-
Anonymous



Oh, btw -

I also put in the following before anything else:

<?php require "poll_cookie.php"; ?>

And still a no go.

-DR-
Anonymous



you forgot to put that
/* path */
$poll_path = "/home/akitafr/www/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();

before the echo

Look at the demo_1 file
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum