• Hallo,

    kann mir jemand sagen, was ich hier falsch mache:

    Code
    $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
    $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>";