Results 1 to 3 of 3

Thread: Creating a poll in php

  1. #1
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default Creating a poll in php

    I am installing this script into my website to create a poll. http://www.dbscripts.net/poll/

    For now I am running test pages so I can get the poll up and running properly before I post it on my live website.

    Sometimes I get part of the poll working and then other parts do not work such as viewing the results.

    In this installation there are two sets of folders and both contain similiar files. I thought that I really did not need to make changes to anything except the config.php page but there must be something simple that I am overlooking. Is anybody available to help me figure out what I need to fix?

    Here are some of the errors I am getting:


    Warning: main(/home/content/b/e/n/benedizione/html/../class.php): failed to open stream: No such file or directory in /home/content/b/e/n/benedizione/html/config.php on line 9

    Fatal error: main(): Failed opening required '/home/content/b/e/n/benedizione/html/../class.php' (include_path='.:/usr/local/lib/php') in /home/content/b/e/n/benedizione/html/config.php on line 9


    Here is line 9 of config.php:
    require_once(dirname(__FILE__) . '/class.php'); // For the Poll class definition


    Warning: main(/test/): failed to open stream: No such file or directory in /home/content/b/e/n/benedizione/html/testpage013.php on line 218

    Fatal error: main(): Failed opening required '/test/' (include_path='.:/usr/local/lib/php') in /home/content/b/e/n/benedizione/html/testpage013.php on line 218


    Here is line 218 of testpage013:
    <?php require_once('/test/');
    show_vote_control('1'); ?>



    The Line 218 script is supposed to be all I need to place on the page where I want the poll to be but it does not work at all.

  2. #2
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    Have been working on this script for 2 days and resolved part of my issues this afternoon on my own.

    Here is what I need help with now.

    http://www.propheciesofrevelation.org/postpage1.php

    Error on this page is:
    Fatal error: Call to undefined function: show_vote_control() in /home/content/b/e/n/benedizione/html/postpage1.php on line 4

    I do not understand why because the "poll id" is defined with a number "1" on my "postpage1" page.

    And when clicking on "Current Results" you get this response:

    Warning: main(/home/content/b/e/n/benedizione/html/pollpoll/class.php): failed to open stream: No such file or directory in /home/content/b/e/n/benedizione/html/poll/config.php on line 9

    Fatal error: main(): Failed opening required '/home/content/b/e/n/benedizione/html/pollpoll/class.php' (include_path='.:/usr/local/lib/php') in /home/content/b/e/n/benedizione/html/poll/config.php on line 9

    Here is config.php line 9:
    require_once(dirname(__FILE__) . 'poll/class.php'); // For the Poll class definition

    What could be wrong?

  3. #3
    Join Date
    Mar 2007
    Posts
    68
    Thanks
    11
    Thanked 0 Times in 0 Posts

    Default

    I am still playing around with this same script and it all seems to be working properly except for an error message at the bottom of this page http://www.propheciesofrevelation.org/postpage1.php


    >>Fatal error: Call to undefined function: show_vote_control() in /home/content/b/e/n/benedizione/html/postpage1.php on line 1<<


    I do not understand how the poll appears to be working fine and yet there is this error message out of nowhere - how could it be interferring with the function of the poll?

    Line 1 on postpage1.php is: <?php require_once('poll/pollform.php'); show_vote_control('1'); ?>

    It is in fact the only coding on postpage1.php. Can anyone tell what is wrong?

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •