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 
Messages posted by: dante
Forum Index » Profile for dante » Messages posted by dante
Author Message
Hi sorry made mistake here:

Hi try this:

<?php
/* Include this before your html code */
include "pollphp/db/poll_cookie.php"; ";.....mistake
?><html> <head>blah blah
</head>
<body>where you want to appear..


change to
<?php
/* Include this before your html code */
include "pollphp/db/poll_cookie.php";
?>
Hi try this:

<?php
/* Include this before your html code */
include "pollphp/db/poll_cookie.php"; ";
?>
<html> <head>blah blah
</head>
<body>where you want to appear..

<?php

/* path */
$poll_path = "/home/virtual/site45/fst/var/www/html/pollphp/db/poll_cookie.php";

require $poll_path."/include/config.inc.php";
require $poll_path."/include/class_poll.php";

$php_poll = new poll();

/* the first poll */
echo $php_poll->poll_process(1);



Cheers - subsitute the ( 1 ) for poll you would like to use..ie (2 )
Hi, sorry it's all a bit slow this...to use the script as you want to it has to saved .php - otherwise you can use an ssi call into a .shtml page ( as you will see in demo5..you will have to use one or the other - it will not work in .html/.htm pages

hope this helps

cheers
Hi there again, are you using .php pages on your site or something else?
Hi guys..I'm having probs with ssi on shtml pages; it displays and functions AOK, except I can't get the soddin thing to write to the text file - ie; to save a poll vote - hum. I believe that this is works ok by using the SQL instead, but do'nt have that option at the mo neither can I use .php pages in my content publishing news site.

Any ideas?

Mucho thanks

D
 
Forum Index » Profile for dante » Messages posted by dante
Go to:   
Based on the open source JForum