Results 1 to 5 of 5

Thread: PHP Problem

  1. #1
    Join Date
    Dec 2004
    Location
    Manchester, UK
    Posts
    334
    Tokens
    0

    Default PHP Problem

    PHP Code:
    <tr> <? if($_SESSION['session_level'] == "1") { ?> 
      <td bgcolor=\"#2C708F\" height=\"12\" style=\"font-family: Verdana; font-size: 10px\">
        <a target=\"main\" style=\"text-decoration: none; color: black; font-weight: normal\" href=\"../../../staff/users_online.php\">
        <font color=\"#FFFFFF\"> 
    &nbsp;Kick/Ban Users</font></a></td></tr> <tr> 
        <td bgcolor=\"#2C708F\" height=\"1\" style=\"font-family: Verdana; font-size: 10px\"> 
    <a target=\"main\" style=\"text-decoration: none; color: black; font-weight: normal\" href=\"../../../staff/unban.php\">
    <font color=\"#FFFFFF\"> &nbsp;Unban Users</font></a></td></tr> </table></div> </body>
    Thats a chunk of code at the very end of the page.

    I get Parse error: parse error, unexpected $ in /home/######/public_html/staff/nav.php on line 265

    Can anyone help?

  2. #2
    Join Date
    Dec 2004
    Location
    Manchester, UK
    Posts
    334
    Tokens
    0

    Default

    MOD Delete Pls.
    Last edited by Robbie..; 04-03-2006 at 10:05 AM.

  3. #3
    Join Date
    Nov 2005
    Posts
    807
    Tokens
    1,335

    Latest Awards:

    Default

    simple because you need to add:
    PHP Code:
    <?php }
    ?>
    at the end..

  4. #4
    Join Date
    Aug 2005
    Location
    Tunbridge Wells, Kent
    Posts
    5,063
    Tokens
    1,624

    Latest Awards:

    Default

    ok....

    Regards,

    SNoop
    Never argue with an idiot, he'll drag you down to his level, and beat you with experience.

    Quote Originally Posted by Recursion
    *oh trust me
    *I would NEVER go ATi
    And 15 mins later...
    Sapphire ATI Radeon HD 5850 1024MB GDDR5 PCI-Express Graphics Card £195.73 1 £195.73
    *ordered.

  5. #5
    Join Date
    Jun 2005
    Posts
    4,795
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Snoop
    ok....

    Regards,

    SNoop
    Thats just pure spam ''/

    Cba to check the code but have you added ; at the end of each line?

    Edit after looking at the code you havent even ended the PHP Block...
    Last edited by Tomm; 04-03-2006 at 05:03 PM.

Posting Permissions

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