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 |
29/05/2002 10:37:21
|
Anonymous
|
Ich möchte gerne mehrere Poll zur Abstimmung bereitstellen, also habe ich mehre erstellt und sie dann mit:
<p><?php
$poll_path = "/vpserver/web/vps01136/www/poll/db";
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();
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(6);
?></p>
<p><?php
$poll_path = "/vpserver/web/vps01136/www/poll/db";
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();
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(4);
?>
<p><?php
$poll_path = "/vpserver/web/vps01136/www/poll/db";
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();
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(5);
?></p>
eingebunden, aber nur der erste Poll wird dargestellt. Und dann erscheint noch eine Fehlermeldung die man unter http://www.stronghold-game.net/index.php?site=poll besichtigen kann.
Was habe ich falsch gemacht???
|
|
29/05/2002 11:00:23
|
Anonymous
|
du darfs die php-codes natürlich nur einmal includen
|
|
|
|
|
|
Based on the open source JForum
|