Thank you! Worked perfectly.
Now I want to show a section IF the user is not the owner of the record and the accesslevel is >=7
The following did not work for either. I can see the section when I am logged in as the owner and logged in the proper access level.
<?php if ($WADAtbl_posts_update->getColumnVal("customerid") != $_SESSION['SecurityAssist_id'] || $_SESSION["accesslevel"] >=8) { // Show if ?>