when a user logs in, their ID is stored in a session.
you need to use an if statement to compare the userID session variable with the UserID from the recordset on the s_profile.php page, for example:
<?php if($_SESSION['IdSession'] != $row_recordsetName['IdColumn']) { ?>
<link code here>
<?php } ?>
where IdSession is the name of the session variable and IdColumn is the name of the ID column in the users table