show if problem
Hey Jason
Am struggling to get a show if to work.
Basically I have this content:
<strong><?php echo $row_Event['EventTitle']; ?></strong>
<?php echo(str_replace(array("<p>","</p>","<blockquote>","</blockquote>","<strong>","</strong>","<em>","</em>","<u>","</u>"),"",substr(preg_replace("/<img[^>]+\>/i", " ",$row_Event['EventContent']),0,250))."..."); ?>
In the table there is a column HideEvent which is either 0 (visible) or 1 (invisible)
Once I have created the show if I have this:
<?php
if ("".$row_Event['HideEvent'] ."" == "0") { // WebAssist Show If
?>
<strong><?php echo $row_Event['EventTitle']; ?></strong>
<?php echo(str_replace(array("<p>","</p>","<blockquote>","</blockquote>","<strong>","</strong>","<em>","</em>","<u>","</u>"),"",substr(preg_replace("/<img[^>]+\>/i", " ",$row_Event['EventContent']),0,250))."..."); ?>
<?php
} // ("".$row_Event['HideEvent'] ."" == "0")
?>
but whether I toggle the HideEvent column to 0 or 1 no content shows
Thanks
Jamie