syntax error, unexpected 'echo' (T_ECHO

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • adeel007
    New Member
    • Apr 2013
    • 1

    syntax error, unexpected 'echo' (T_ECHO

    echo "<ul class=\"pages\" >";
    I m getting echo error on above mention code, pls suggest me the alternate method.
    thanks
    adeel
  • Atli
    Recognized Expert Expert
    • Nov 2006
    • 5062

    #2
    Look at the error message: "Unexpected 'echo'".
    That means that PHP was not expecting there to be an "echo" statement there, which tells us that something prior to that "echo" statement is causing the echo statement to be out of place.

    In pretty much any language, when you get syntax errors, you want to look at the code above the line specified in the error message.

    Comment

    • omerbutt
      Contributor
      • Nov 2006
      • 638

      #3
      hi
      most probably you are missing a semicolon after a statement before the echo
      regards,
      Omer ASlam

      Comment

      Working...