I am getting this error....

Parse error: syntax error, unexpected '*' in /home/digital/public_html/administrator/components/com_myblog/admin.myblog.php on line 206

Here is the code: <MOVED TO ATTACHED AS IT IS BREAKING VIEW IN FIREFOX>

End of Code

I am not sure why I am getting the above error any help would be great...

Thaks

Recommended Answers

All 3 Replies

A), use [code] tags
B) Don't nest comments (If you would've used code tags you would have seen the error, or you could just use an editor that actually highlights your code)

/* case 'latestnews':

/**

* Show latest news for My Blog

**/

if(cmsVersion() != _CMS_JOOMLA15)

$title = "Latest updates";

showLatestNews();

break;*/

Thank you...so can you tell me what should I correct...as I am not sure...


Thanks

A), use [code] tags
B) Don't nest comments (If you would've used code tags you would have seen the error, or you could just use an editor that actually highlights your code)

/* case 'latestnews':

/**

* Show latest news for My Blog

**/

if(cmsVersion() != _CMS_JOOMLA15)

$title = "Latest updates";

showLatestNews();

break;*/

The error PHP gives you essentially tells you EXACTLY what to do already. Remove the errant end comment which I pointed out in my snippet

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.