LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   PHP parse error unexpected '>' (https://www.linuxquestions.org/questions/programming-9/php-parse-error-unexpected-297694/)

ldp 03-04-2005 01:57 PM

PHP parse error unexpected '>'
 
Why do I get:
Parse error: parse error, unexpected '>' in /home/lieven/homepage/photopage2/index.php on line 24
??

This error occurs only within a <div> tag:

...
echo "<br/>"; =================== this gives no error
echo "<div id=\"login\">;
echo "<ul>"; ==================== this gives the error
echo "<li>login:</li>";
echo "<li>password:</li>";
echo "<li>login</li>";
echo "</ul>";
echo "</div>";
..

Also if I put the echo "<br/>"; in the the <div> tag, it will give the error for this one.

regards,
Lieven

deiussum 03-04-2005 02:03 PM

You seem to be missing a " in this line:

echo "<div id=\"login\">;

ldp 03-04-2005 02:20 PM

Quote:

Originally posted by deiussum
You seem to be missing a " in this line:

echo "<div id=\"login\">;

You're absolutely right. How stupid do I look to you now? :(
I was already looking up a lot of things that had nothing to do with it.

Thanks anyway!
rgds,
Lieven


All times are GMT -5. The time now is 07:39 AM.