Forum Moderators: coopster
Welcome back <?= $fgmembersite->UserID(); ?>!
<p><a href='change-pwd.php'>Change password</a></p>
<?php
$ID = $fgmembersite->UserID();
if ($ID>1)
{
echo "View only links here";
}
else
{
<div style="display: none;"><p><a href='access-controlled.php'>A sample 'members-only' page</a></p></div>;
}
If you stick to double quotes in HTML output and single quotes in PHP syntax, you'll make less coding errors in the long run.