session username match to
<p>So when a logged on user posts a comment on my webpage, it automatically posts their username next to their comment. using <code>&lt;? echo $rows['a_name']; ?&gt;</code></p>

<p>I now want to create an edit link that will only appear on the posts that the logged in user has created.  In other words I want to match the <code>&lt;? echo $rows['a_name']; ?&gt;</code> to the <code>$_SESSION=['username']</code> username and if they match - display the edit link -... if not, then hide the edit link.</p>

<p>Any help, examples, ideas?</p>
