Chi Kien Uong
Geranienstraße 30
71034 Böblingen
Deutschland / Germany
|
If you are not registered or logged in, you may still use these forums but with limited features.
Show recent topics
|
|
|
Author |
Message |
26/09/2005 09:10:19
|
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
|
|
26/09/2005 11:34:28
|
ubernoob
Newbie
Joined: 26/09/2005 08:59:55
Messages: 2
Offline
|
i got it working
|
|
|
|
|
|
Based on the open source JForum
|