954,604 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Parse Error In Simple Blog

I'm trying to write a blog and this comes up
:
Parse error: syntax error, unexpected '<' in C:\wamp\www\Blog\index.php on line 65
the code:

$query  = "SELECT id, header, body, views FROM information";
$result = mysql_query($query);
while($row = mysql_fetch_row($result))
{
	print "<div class=section odd>";
	print "<a href=images/riverside.jpg><img src=images/riverside.jpg /></a>"; <!--  width="125" height="60" width=90 height=73" -->
	print "<div>";
	print "<h3>TITLE</h3>";
	print "<p>BODY</p>";
	print "<div class='stats'>";
	print "<a href="#" class="time">Sept 21  by Nullam</a>";
	print "<span>000 views</span>";
	print "<a href="#" class="comments">30</a>";
	print "<a href="http://twitter.com/fwtemplates" class="twitter">Tweet</a>";
	print "<a href="http://facebook.com/freewebsitetemplates" class="facebook">Share</a>";
	print "</div>";
	print "</div>";
        print "</div>";
					
}
Warl30ck
Newbie Poster
15 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

LINE 65 is : print "";

Warl30ck
Newbie Poster
15 posts since Mar 2011
Reputation Points: 10
Solved Threads: 0
 

Comments in PHP are the following:

# single line comment

// single line comment

/* multi-line
   comment */
<!-- this is a HTML comment and not valid for use within PHP tags as on line 7 of your example -->
pritaeas
Posting Expert
Moderator
5,484 posts since Jul 2006
Reputation Points: 653
Solved Threads: 875
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: