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: Typo somewhere?

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

    Typo somewhere?

    PHP Code:
    if ($AB == 'On'){
    ImageString ($im41850"On the $line"$color);
    }
    if (
    $AB == 'Above' || $AB == 'Below'){
    if (
    $line == 'Front Sideline') {
    ImageString ($im41850"$hash $AB Front Side"$color);
    //one it should use ^^^^
    }
    if (
    $line == 'Back Sideline') {
    ImageString ($im41850"$hash $AB Back Side"$color);
      }else{
    ImageString ($im41850"$hash $AB $line"$color);
    //one it does use ^^^^
    }

    In that code, if $AB is set to Above and $line is set to Front Sideline, it does not use ImageString set to that, but instead uses the }else{ one. What's going wrong?

    I echoed out $AB and $line it gave me Above and Front Sideline so that's not the problem.

  • #2
    Senior Coder chump2877's Avatar
    Join Date
    Dec 2004
    Location
    the U.S. of freakin' A.
    Posts
    2,802
    Thanks
    19
    Thanked 157 Times in 148 Posts
    PHP Code:
    if ($AB == 'On')
    {
        
    ImageString ($im41850"On the $line"$color);
    }

    if (
    $AB == 'Above' || $AB == 'Below')
    {
        if (
    $line == 'Front Sideline'
        {
            
    ImageString ($im41850"$hash $AB Front Side"$color);
        }
        elseif (
    $line == 'Back Sideline'
        {
            
    ImageString ($im41850"$hash $AB Back Side"$color);
        }
        else
        {
            
    ImageString ($im41850"$hash $AB $line"$color);
        }

    Regards, R.J.

    ---------------------------------------------------------

    Help spread the word! Like my YouTube-to-Mp3 Conversion Script on Facebook !! :)
    [Related videos and tutorials are also available at my YouTube channel and on Dailymotion]
    Get free updates about new software version releases, features, and bug fixes!


  •  

    Posting Permissions

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