1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

PHP PHP + Html?

Discussion in 'Web Development' started by jrodrick4, Dec 31, 2009.

  1. jrodrick4

    jrodrick4 New Member

    Im having a hard time with php code and html code in one. I know you can have something like
    html code here...<? php code here ?> and than more html code here....

    But i keep getting a syntax error, why?
    No i dont, this is what it fully says...

    Parse error: syntax error, unexpected $end in C:\wamp\www\Work\surveyGuide.php on line 201

    and it points to my end thing ?>
    See it goes <? php code ?> and than html....<?php code ?>
     
  2. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    If it points to your end ?> code, the syntax error can be anywhere.
    Post your php code on the forum so we can have a look and see if we can find the syntax error.
    Use the "Go Advanced" button under the reply box and then the last php button. Wrap PHP tags around the selected text.
    So we can view it here like this:
    PHP:
    <?php 

    ?>