- Joined
- Jul 12, 2002
- Messages
- 3,571
- Reaction score
- 0
This script comes with cpanel I use..
I need some help walking through how to actually incorporate these into a page..
From cpanel.. the Polls script is automatically installed ..so I dont have to worry about that part.. I can check into the admin area and set-up the differnt colors and layouts just fine..then you press enter and it spits out the correct code/script similiar tothe script on the left hand side..
http://www.proxy2.de/poll/index.php
Ok,so this part of the script :
<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>
Is that suppose togo alltheway at the top of a page ..?
and then this part :
<?php
/* path */
$poll_path = "/www/proxy2/html/poll";
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);
/* the second poll */
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(2);
/* the third poll */
$php_poll->set_template_set("popup");
if ($php_poll->is_valid_poll_id(3)) {
echo $php_poll->display_poll(3);
}
?>
where you actually want the Poll at ?
is that correct ?
200 F$ for someone to walk me through this..
I need some help walking through how to actually incorporate these into a page..
From cpanel.. the Polls script is automatically installed ..so I dont have to worry about that part.. I can check into the admin area and set-up the differnt colors and layouts just fine..then you press enter and it spits out the correct code/script similiar tothe script on the left hand side..
http://www.proxy2.de/poll/index.php
Ok,so this part of the script :
<?php
/* Include this before your html code */
include "./poll_cookie.php";
?>
Is that suppose togo alltheway at the top of a page ..?
and then this part :
<?php
/* path */
$poll_path = "/www/proxy2/html/poll";
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);
/* the second poll */
$php_poll->set_template_set("simple");
$php_poll->set_max_bar_length(80);
echo $php_poll->poll_process(2);
/* the third poll */
$php_poll->set_template_set("popup");
if ($php_poll->is_valid_poll_id(3)) {
echo $php_poll->display_poll(3);
}
?>
where you actually want the Poll at ?
is that correct ?
200 F$ for someone to walk me through this..