Results 1 to 3 of 3

Thread: Language String not displying

  1. #1
    Join Date
    Jun 2007
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Language String not displying

    Hi there,

    This code which i made doesn't disply the language value, i dont know why, can you please check it for me?

    Code:
    <?
    if ($set=="a")
      echo "<center><table cellspacing=1 cellpadding=4 border=0 bgcolor=#FF0000><tr><td align=center bgcolor=#FFE6E6><img src='images/up.png'> <font color=#008000><b>".$settings_save."</b></font></td></tr></table></center></br>";
    elseif ($d=="b")
      echo "<center><table cellspacing=1 cellpadding=4 border=0 bgcolor=#FF0000><tr><td align=center bgcolor=#FFE6E6><img src='images/down.png'> <font color=#FF0000><b>".$settings_not_saved."</b></font></td></tr></table></center></br>";
    else
      echo ""; ?>
    The language values are settings_save and settings_not_save

    Thanks.

    Best Regards,
    Private_Guy

  2. #2
    Join Date
    Sep 2006
    Location
    St. George, UT
    Posts
    2,769
    Thanks
    3
    Thanked 157 Times in 155 Posts

    Default

    What's the rest of the code, most importantly the parts where the variables get assigned. It's very hard to troubleshoot if we don't have the full code.
    "Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
    TheUnlimitedHost | The Testing Site | Southern Utah Web Hosting and Design

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,878
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Always drop out of PHP parsing mode when writing HTML -- it makes your code much easier to read. You should also make your code validate as HTML 4.01 Strict.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •