php - How do i display the username who posted the comment?
one text
Solution:
i think your using a username session value who is logged in....you need to to save the userId in the table while submitting the comments form and use the userId to show the username.
Source