Hi everyone and Good day!Am new to php and I have a problem with the code below.
<?php if (is_user_logged_in() ) //only logged in user can see this 'echo'<href="http://localhost/itsz.com/profile">Profile</a>';
What i want it to do is to only show the link "profile" 'only' to logged in users but it doesen't. Instead, profile link is shown to both loggedin and non logged in users. i know i have made an error in the code syntax but i have no idea where. It was just a copy and paste game and edit a little.Php coders help me. Thank you.