Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Problem z wyświetlaniem sondy Advanced Poll 2.03
lunix
post
Post #1





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 14.01.2006

Ostrzeżenie: (0%)
-----


Witam,

Mam problem ze sondą Advanced Poll 2.03. Po prawidłowej instalacji i wklejeniu kodu który generuje sondę wyświetla się następujący komunikat o błędzie:

Fatal error: Cannot redeclare class polldb_sql in /home/users/mieszko_af/www/www.mieszko.iap.pl/poll/include/class_mysql.php on line 0

Proszę o pomoc.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
lunix
post
Post #2





Grupa: Zarejestrowani
Postów: 6
Pomógł: 0
Dołączył: 14.01.2006

Ostrzeżenie: (0%)
-----


Wstawilem kod ktory byl podany w przykladzie: http://www.mieszko.iap.pl/poll/demo_2.php

czyli w miejscu wyswietlania sie sondy wkleilem to:

<?php

/* path */
$poll_path = "/home/users/mieszko_af/www/www.mieszko.iap.pl/poll";

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

$php_poll = new pollcomment();

/* poll */
$php_poll->set_template_set("plain");
$php_poll->set_max_bar_length(125);
$php_poll->set_max_bar_height(10);
echo $php_poll->view_poll_result(1);


/* poll comments */
$php_poll->set_template("poll_comment");
$php_poll->set_comments_per_page(5);
$php_poll->set_date_format("d/m/Y H:i");
$php_poll->data_order_by("time","desc");
echo $php_poll->view_poll_comments(1);
echo $php_poll->get_comment_pages(1);

?>
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 10.10.2025 - 09:21