I'm not quite sure what you are trying to do.
your code
<a href="mypage.php?id=35">text</a>
is a link, the <a href>....</a> tags make it one
the 'mypage.php?id=35' is where the link redirects to, and 'text' is what is displayed on the screen.
to remove a link, you need to remove the <a href>....</a> tags and the redirect.
Do you have a url to show the issue ?