Brauche hilfe mit PHP

  • hallo leute und zwar möchte ich ein paar youtube videos auf eine neue seite bei meiner homepage einbinden nur kommt immer 1 fehler

    -->Parse error: syntax error, unexpected '<' in C:XXX.php on line 12

    das ist die php

    <?php
    $title = $allgAr['title'].' :: Joinus';
    $hmenu = 'Joinus';
    $design = new design ( $title , $hmenu );
    $design->header();

    <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/fdvx59B8Ljg&hl=de_DE&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/fdvx59B8Ljg&hl=de_DE&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
    <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/6C6_VGQrcAg&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/6C6_VGQrcAg&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
    <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/IDheSvhxuTY&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/IDheSvhxuTY&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
    <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/OBDkA5NQIrw&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/OBDkA5NQIrw&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
    <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/bpVa0TQqIok&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/bpVa0TQqIok&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
    <object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/guXdTYexoho&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/guXdTYexoho&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>

    $design->footer();
    ?>

  • 1.: Wir haben hier im Forum den PHP-Tag, der PHP farblich auszeichnet.
    2.: Dein Fehler ist, dass du eine Ausgabe mit dem echo-Befehl machst.
    http://at2.php.net/echo

    Deine <object>-Tags sind HTML, kein PHP, deswegen musst du sie mittels echo ausgeben.

    Something big is coming. And there will be pirates and ninjas and unicorns...

    Einmal editiert, zuletzt von Dodo (4. April 2010 um 23:07)

  • Something big is coming. And there will be pirates and ninjas and unicorns...