Syntax Error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kkonline
Forum Contributor
Posts: 251
Joined: Thu Aug 16, 2007 12:54 am

Syntax Error

Post by kkonline »

~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: :arrow: Posting Code in the Forums to learn how to do it too.


Hi all,
I am getting a syntax error in the following code

Code: Select all

echo '<a href="http://mysite.com/news/'.date("My").'feed'.$filename'">'.$filename.'</a>';
What is the mistake that I am doing?


~pickle | Please use [ code=html ], [ code=php ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: :arrow: Posting Code in the Forums to learn how to do it too.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Syntax Error

Post by pickle »

Proper syntax highlighting helps. You're missing a concatenating '.' after $filename.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply