Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Curt Howe
    New Member
    • Dec 2010
    • 3

    #1

    Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

    I am sooo lost and you guys are amazing on this site to help, I thank you VERY much! The first line below is the one giving me the error, would appreciate if someone can check this, thank you again!

    echo "Shirt: " . $clientinfo['shirt'] . " ' "Jacket: " . $clientinfo['jacket'] . " ' ' "Dress: " . $clientinfo['dress'] . ;
    echo "Hair: " . $clientinfo['hair'] . "&nbsp;&nbsp;&n bsp; Eyes: " . $clientinfo['eyes'] . "<br/>";
    $order = array("\r\n", "\n", "\r");
    $replace = '<br />';
    echo "<p style = 'font-size:90%;'>Expe rience:<br/>";
    echo str_replace($or der, $replace, $clientinfo['experience']) . "</p>";
    echo "<p style = 'font-size:90%;'>Skil ls:<br/>";
    echo str_replace($or der, $replace, $clientinfo['skills']) . "</p>";


    echo "</div>
  • johny10151981
    Top Contributor
    • Jan 2010
    • 1059

    #2
    echo "Shirt: " . $clientinfo['shirt'] . " ' "<Something is missing here>Jacket: " . $clientinfo['jacket'] . " ' ' "Dress: " . $clientinfo['dress'] .

    Comment

    • JKing
      Recognized Expert Top Contributor
      • Jun 2007
      • 1206

      #3
      Code:
      echo "Shirt: " . $clientinfo['shirt'] . " Jacket: " . $clientinfo['jacket'] . " Dress: " . $clientinfo['dress'] . ;
      echo "Hair: " . $clientinfo['hair'] . "&nbsp;&nbsp;&nbsp; Eyes: " . $clientinfo['eyes'] . "<br/>";
      $order = array("\r\n", "\n", "\r");
      $replace = '<br />';
      echo "<p style = 'font-size:90%;'>Experience:<br/>";
      echo str_replace($order, $replace, $clientinfo['experience']) . "</p>";
      echo "<p style = 'font-size:90%;'>Skills:<br/>";
      echo str_replace($order, $replace, $clientinfo['skills']) . "</p>";
      
      
      echo "</div>";
      Try that.

      Comment

      Working...