if category_id equals number - Joomla! Forum - community, help and support


hi guys,

i'm newbie when comes php , programming , cannot seem right. i'm trying place div on specific category browse page in joomla (virtuemart) , want this:

if category_id = 16, echo div. else, display nothing.

my code not work:

code: select all

<?php
if ($this->category_id == "16"]) {echo ('<div>bbb</div>');} else {}
 ?>


can please me figure out did wrong? thanx lot.






Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support