Results 1 to 4 of 4

Thread: Unexpected '}'

  1. #1

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Unexpected '}'

    I am getting the "Unexpected '}'" error on the line after the code below, do i need to terminate this tag?
    PHP Code:
    ="<?php echo($program_images_row[4]) ?>"
    Code before error
    PHP Code:
    <td colspan="2"><div align="center"><a href="<?php echo($program_images_row[4]) ?>" target="_blank"><img src="<?php echo($program_images_row[3]) ?>" alt="<?php echo($program_images_row[2]) ?>" border="0"></a></div></td>
    My Flickr Stream


    My Sites Blog Twitter Flickr

  2. #2
    Fanatic Member
    Join Date
    Oct 2004
    Posts
    751

    Re: Unexpected '}'

    Try this instead:
    PHP Code:
    ="<?=$program_images_row[4]?>"
    Note: Short tags will have to be enabled.
    My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]

    My Sites:
    [ Datanethost ]
    [ Helpdesk ]

    Remember if my post was helpful then Rate This Post.

  3. #3
    Fanatic Member modpluz's Avatar
    Join Date
    Sep 2005
    Location
    Lag, NG
    Posts
    633

    Re: Unexpected '}'

    why not try putting ; after the echo
    like this
    PHP Code:
    <?php echo($program_images_row[4]); ?>"
    If you want the rabbit to hop, move the carrot - Paul Kellerman(Prison Break)

    onError GoTo http://vbforums.com



    My Bits:
    VB6: Change Column Name in MS ACCESS

  4. #4
    Stuck in the 80s The Hobo's Avatar
    Join Date
    Jul 2001
    Location
    Michigan
    Posts
    7,256

    Re: Unexpected '}'

    Quote Originally Posted by k1ll3rdr4g0n
    Try this instead:
    PHP Code:
    ="<?=$program_images_row[4]?>"
    Note: Short tags will have to be enabled.
    Short tags are generally considered bad programming. His problem is probably the missing semi-colon.
    My evil laugh has a squeak in it.

    kristopherwilson.com

Posting Permissions

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



Click Here to Expand Forum to Full Width