LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 03-04-2005, 02:57 PM   #1
ldp
Member
 
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Rep: Reputation: 18
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
 
Old 03-04-2005, 03:03 PM   #2
deiussum
Member
 
Registered: Aug 2003
Location: Santa Clara, CA
Distribution: Slackware
Posts: 895

Rep: Reputation: 32
You seem to be missing a " in this line:

echo "<div id=\"login\">;
 
Old 03-04-2005, 03:20 PM   #3
ldp
Member
 
Registered: Apr 2004
Location: Belgium Antwerpen
Distribution: slackware - knoppix
Posts: 141

Original Poster
Rep: Reputation: 18
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse HTML using PHP jilljack Programming 1 11-07-2005 10:46 AM
PHP parse error in config.inc.php.in Confusedious Linux - Software 2 11-03-2005 06:08 AM
unexpected T_VARIABLE in php script verbatim Programming 1 05-09-2005 01:21 PM
PHP Parse error.....PHPBB bentman78 Linux - Software 0 07-09-2003 07:35 AM
php parse error wujimon Linux - Software 4 03-26-2003 03:37 PM


All times are GMT -5. The time now is 01:28 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration