View Full Version : show hide div
randyw2394710
04-05-2011, 05:53 AM
i have attached a page and the database
i want the right side bar to not show when there is no content in pcms2_contents in content value
Jason Byrnes
04-05-2011, 07:23 AM
Use this if statement:
<?php if ($row_rightSidebar['ContentValue'] != "" || $row_rightSidebar['ContentValue'] != NULL) { ?>
<div id="sidebar2">
<!-- end #sidebar1 -->
<?php echo $row_rightSidebar['ContentValue']; ?></div>
<?php } ?>
randyw2394710
04-06-2011, 05:11 AM
i get this error
Parse error: syntax error, unexpected $end in /home/va010021/public_html/multiinnovations/index.php on line 184
all set forgot to place this
<?php echo $row_rightSidebar['ContentValue']; ?></div>
<?php } ?>
vBulletin® v3.8.1, Copyright ©2000-2012, Jelsoft Enterprises Ltd.