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
Post a Comment