IF statement to show or hide a div with CMS
Hi, I have created an div on a page where I want the content to show or hide based on what is entered into the admin area, and I am trying to make it disappear if the content is equal to 'blank', but I keep getting an error.
I can get an if statement to work if I have a recordset to compare contents to, but as a site with CMS doesn't need a recordset, I am struggling to get the thing to work.
----------
This is the code I have which is similar to that I would use on a recordset:
<?php /*START_PHP_SIRFCIT*/ if($database_localhost, $localhost, ['in focus', 'Main area']<>"blank"){ ?>
<div id="infocuspanel">
<?php echo WA_getCMSContent($database_localhost, $localhost,"in focus", "Main area"); ?>
</div>
<?php } /*END_PHP_SIRFCIT*/ ?>
----------
I keep getting this error no matter what change I make though:
Parse error: syntax error, unexpected ',' in /Users/username/Sites/website/includes/in_focus.php on line 1
----------
Any ideas on what I can do to make this show or hide based on the content being 'blank'?
Thanks.