SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help on PHP Poll Script

    I'm using sympoll, if that information is helpfull

    My problem is that I'd wish for my polls to rotate automatically instead of one page just being able to display one particular type of poll. Here is the coding it gives me and I wondered if I could use a * instead of a number so that it could retrieve any poll

    Code:
    <?php require '/home/LALALA/public/sympoll/booth.php';
      display_booth(2); ?>

  2. #2
    SitePoint Enthusiast menkes's Avatar
    Join Date
    Jul 2002
    Location
    Channel Islands
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sympoll has 2 other builtin functions besides getting a specific booth: random_booth() and newest_booth().

    Just change your code to:

    PHP Code:
    <?php require '/home/LALALA/public/sympoll/booth.php';
      
    random_booth(); ?>
    Hope that helps....

  3. #3
    SitePoint Enthusiast
    Join Date
    Apr 2002
    Posts
    77
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    status?

    is the status supposed to be

    hidden
    opened
    or closed


    and thanks for the above code

    never mind above question

    I figured everything out and had to reassign my pages from .htm to .html and use .htaccess to get the poll going. It was worth it b/c I no longer have to use bravenet's service that had an annoying pop up in the background after using the poll.


    thanks again
    Last edited by FSN; Jul 13, 2002 at 17:33.


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
  •