Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Fixed

  1. #1
    Regular Coder
    Join Date
    May 2005
    Posts
    224
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Fixed

    Edit:
    Never mind. I rewrote it and fixed it.
    Last edited by Crazydog; 06-10-2005 at 06:30 AM.

  • #2
    Regular Coder
    Join Date
    Mar 2004
    Location
    Australia
    Posts
    217
    Thanks
    0
    Thanked 1 Time in 1 Post
    PHP Code:
    <?php
      
    include ("<djstatusv1.8.1/config.php");
        
        if (
    $address == "requests.php"
        {
           echo 
    "<img src=\"images/playing.gif\">";
        }
        else 
        {
           echo 
    "<img src=\"images/notplaying.gif\">";
        }
    ?>
    umm i have no idea what else you have on that page... but it looks to be really messy (mass if statements). you also need a == when comparing not just =

    = is generally for assigning a variable a value. ie. $address = "blah";
    == is a comparison. i.e if ($address == "blah) { echo "true"; }

    just keep your formatting tabulated so it makes it easier for you to follow as well.

    also need to escape " with \ when your echoing.

    edit: i also noticed in your include you have "<djstatusv1.8.1/config.php" is that ment to be just djstatusv1.8.1 without the < ?
    Last edited by Serex; 06-10-2005 at 06:18 AM.


  •  

    Posting Permissions

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