php - session username match to -


so when logged on user posts comment on webpage, automatically posts username next comment. using <? echo $rows['a_name']; ?>

i want create edit link appear on posts logged in user has created. in other words want match <? echo $rows['a_name']; ?> $_session=['username'] username , if match - display edit link -... if not, hide edit link.

any help, examples, ideas?

<?php if($rows['a_name']===$_session['username']) { ?>     <!-- edit link here --> <?php } ?> 

Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -