synatx fehler

  • Hallo,


    kann mir jemand sagen, was ich hier falsch mache:


    Code
    1. $output = "<table class=\"tableDo".__FILE__."\"><tr><th>".$_LANG['do'.__FILE__]."</th><th>".$_LANG['price']."</th><th>".$_LANG['setup']."</th><th class=\"spacer\"></th><th>".$_LANG['do'.__FILE__]."</th><th>".$_LANG['price']."</th><th>".$_LANG['setup']."</th></tr>";


    PHP Parse error: syntax error, unexpected T_STRING, expecting ']'



    mfg

  • Parse-Errors in einem Forum :( Einfach mal den Quellcode ordentlich formatieren und die Augen aufmachen!!!

    PHP
    1. $output = "<table class='tableDo" . __FILE__ ."'>
    2. <tr>
    3. <th>" . $_LANG['do' . __FILE__] . "</th>
    4. <th>" . $_LANG['price'] . "</th>
    5. <th>" . $_LANG['setup'] . "</th>
    6. <th class='spacer'></th>
    7. <th>" . $_LANG['do' . __FILE__] . "</th>
    8. <th>" . $_LANG['price'] . "</th>
    9. <th>" . $_LANG['setup'] . "</th>
    10. </tr>";