the code for the show if looks corrtect:
<?php
if ("".$row_pages['customerid'] ."" == "".$_SESSION['directoryid'] ."") { // WebAssist Show If
?>
so the question is what are the values of the $row_pages['customerid'] and $_SESSION['directoryid']
add the following code jsut before the show if code to output the values:
<?php echo("rs: ".$row_pages['customerid']."|| session: ".$_SESSION['directoryid'].""); ?>
this will help troubleshoot.