Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2007
    Location
    England, Uk, World, Universe,
    Posts
    1,012
    Tokens
    0

    Latest Awards:

    Default DRIVING ME INSANE

    Right, what is wrong with this script?

    PHP Code:
    <?php require_once("resources/specialoffers.php");
                    if (
    $siteoffers = (false)) { ("<b><center><h1><font color=\"#000FFF\">Sorry, there are 0 Hosting Offers!</font></h1></center></b>"); } else { echo ("<b><center><h1><font color=\"#000FFF\"><a href=\"other.php?id=offers\">Their Are $offersmany Offers! It Is A $offer_type Special!</a></font></h1></center></b>"); }?>
    Contents of specialoffers.php:
    PHP Code:
    <?php
    $siteoffers 
    false;
    $offer_type "Christmas";
    $offersmany "5";
    ?>
    Because regardless, it will show that their is offers
    Help Plx
    Thanks.
    my sig ran away,

  2. #2
    Join Date
    Sep 2006
    Location
    Hobart, Australia
    Posts
    593
    Tokens
    0

    Default

    PHP Code:
    <?php

    require_once("resources/specialoffers.php");

    if (
    $siteoffers == FALSE) {

    echo 
    "<b><center><h1><font color=\"#000FFF\">Sorry, there are 0 Hosting Offers!</font></h1></center></b>";
    }

    else {

    echo 
    "<b><center><h1><font color=\"#000FFF\"><a href=\"other.php?id=offers\">Their Are $offersmany Offers! It Is A $offer_type Special!</a></font></h1></center></b>";

    }

    ?>

  3. #3
    Join Date
    Jan 2007
    Location
    England, Uk, World, Universe,
    Posts
    1,012
    Tokens
    0

    Latest Awards:

    Default

    Thanks man, +REP
    my sig ran away,

Posting Permissions

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