LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 01: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, 02: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, 02: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



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 09:46 AM
PHP parse error in config.inc.php.in Confusedious Linux - Software 2 11-03-2005 05:08 AM
unexpected T_VARIABLE in php script verbatim Programming 1 05-09-2005 12:21 PM
PHP Parse error.....PHPBB bentman78 Linux - Software 0 07-09-2003 06:35 AM
php parse error wujimon Linux - Software 4 03-26-2003 02:37 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:25 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration