I'm wanting to show an element when logged in as user. And when not logged in it is to be hidden. I get PHP Parse error: syntax error, unexpected '<'. Please any help on this and thanks upfront
<?php
if ($_SESSION['usrname'])
{
<style type="text/css">#lah{
display:visible;}
</style>
} else {
<style type="text/css">#lah{
display:none;
}</style>
}
?>