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 
PHP Poll (poll does not exist?)  XML
Forum Index » Support Forum
Author Message
realrobley
Beginner

Joined: 13/04/2005 13:56:12
Messages: 13
Offline

Hello,

I have been using php poll for years without a problem until now.


A customer on my site requested a poll and since I have it installed already, I just copied the complete folder to his subdirectory, and modified the code to reflect the new location


Im using a pop-up version with the following code. In this case it is poll ID#5 and it works.

view here
https://insarnia.ca/ssp/thegamestation/showpoll5.php






Now I created a new poll, it is ID#24, so my new code is.

view here
https://insarnia.ca/ssp/thegamestation/showpoll24.php


<?php

/* get poll id24 */
$poll_path = "/home/insarnia/public_html/ssp/thegamestation/poll/";
require $poll_path."/include/config.inc.php";
require $poll_path."/include/class_poll.php";
$php_poll = new poll();
$php_poll->set_template_set("popup");
if ($php_poll->is_valid_poll_id(24)) {
echo $php_poll->display_poll(24);
}

?>

[/code]

Everything seems to work fine, except when Im suppose to get results, it shows that the "Poll ID# does not exist"

Its like Its looking to the old location but I cant find any reference to the old path, so Im puzzled.

I also noticed something. alll the poll#5 has some other files with it

5
5.ip
5.log

but the 24 has only

24

I purchased the supported version, so Im hoping I can get this resolved, Its quite unusual I have a problem like this but im baffled.

I assumed at first it is a file permissions problem but thats not the case that I can see since I used cpanel and just copied it on the server and it kept all the permissions intact. All I can think maybe its a cookie or session issue?

Someone plz help??
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

It works.
realrobley
Beginner

Joined: 13/04/2005 13:56:12
Messages: 13
Offline

??

https://insarnia.ca/ssp/thegamestation/showpoll24.php

Im talking about this one, the poll comes up but the results wont
amber222
Graduate

Joined: 07/05/2004 21:13:07
Messages: 586
Offline

Sorry, I clicked on the wrong link.
realrobley
Beginner

Joined: 13/04/2005 13:56:12
Messages: 13
Offline

oye

So how u been anyways? its been a Long time
 
Forum Index » Support Forum
Go to:   
Based on the open source JForum