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 
Some minor problems (adv poll)  XML
Forum Index » Support Forum
Author Message
ubernoob
Newbie

Joined: 26/09/2005 08:59:55
Messages: 2
Offline

Cheers everybody

im installing advanced poll, and from the looks of the admin it looks pretty slick to me and thats good.

The problem arrives when i want to put in the poll into my whatever.php

Let me show:

INTO HEADER

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

AFTER BODY

<?php

/* path */
$poll_path = "/www/proxy2/html/poll"; MY PATH

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);

}

?>
----------------------------------------------------------------------------

This is was i get

Parse error: parse error, unexpected '}' in /mypath/whatever/index.php on line 28

I have tried alot of different approaches but havnt figured it out yet


Any help are much appreciated
ubernoob
Newbie

Joined: 26/09/2005 08:59:55
Messages: 2
Offline

i got it working
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum