Page 1 of 1

Syntax Error

Posted: Tue Oct 07, 2008 12:40 pm
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.

Re: Syntax Error

Posted: Tue Oct 07, 2008 12:52 pm
by pickle
Proper syntax highlighting helps. You're missing a concatenating '.' after $filename.