Closed Thread
Results 1 to 2 of 2

Thread: syntax error, unexpected T_STRING

  1. #1
    hamon-12399 is offline x10Hosting Member hamon-12399 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    8

    syntax error, unexpected T_STRING

    I am trying to install a new layout for my website and it keeps saying I need to change lin 198

    This is line 198

    print "<a href="http://donator.php" target="_blank"><b>Donate to {$set['game_name']} now for game benefits!</b></a>
    ";
    }

    Please help me edit this if you can =)

  2. #2
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,635

    Re: syntax error, unexpected T_STRING

    PHP Code:

    print "<a href=\"http://donator.php\" target=\"_blank\">
    <b>Donate to 
    {$set['game_name']} now for game benefits!</b></a>"
    Watch for double quotes inside of a double quoted string. You have to \"escape\" them.
    Nothing is always absolutely so.

Closed Thread

Similar Threads

  1. Replies: 0
    Last Post: 04-18-2011, 07:15 AM
  2. Parse error: syntax error, unexpected T_ELSE
    By whathappenswhen53 in forum Programming Help
    Replies: 3
    Last Post: 08-21-2010, 08:10 AM
  3. unexpected T_STRING
    By Zangetsu in forum Programming Help
    Replies: 3
    Last Post: 10-16-2008, 11:19 AM
  4. Parse error: syntax error, unexpected
    By Fr33z4r in forum Free Hosting
    Replies: 12
    Last Post: 11-04-2007, 06:12 PM
  5. Replies: 9
    Last Post: 10-11-2007, 11:45 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
x10hosting free hosting for the masses
dedicated servers