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 
Poll and Comments on one site not possible?  XML
Forum Index » Support Forum
Author Message
Savage
Newbie

Joined: 25/01/2003 13:01:13
Messages: 1
Offline

Hi!

I have installed A. Poll 2.02 and it works. I have included it on my (non frame) site on the right. When I include the folowing code in the content area to display the comments - i get error messages. He displays the commets but on the place where the poll generally is i get error messages.

CODE from "demo_2.php":

<?php

/* path */
$poll_path = "/kunden/pixelgenie.de/webseiten/pd2/data/vote";

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

?>


Error Message:

Warning: Access denied for user: 'db19123@localhost' (Using password: YES) in /kunden/pixelgenie.de/webseiten/pd2/data/poll6/config.inc.php on line 94

Warning: MySQL Connection Failed: Access denied for user: 'db19123@localhost' (Using password: YES) in /kunden/pixelgenie.de/webseiten/pd2/data/poll6/config.inc.php on line 94

Warning: mysql_error(): supplied argument is not a valid MySQL-Link resource in /kunden/pixelgenie.de/webseiten/pd2/data/poll6/config.inc.php on line 95

Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /kunden/pixelgenie.de/webseiten/pd2/data/poll6/poll.php on line 11

Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /kunden/pixelgenie.de/webseiten/pd2/data/poll6/poll.php on line 12


Maybe you can help me?
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum