Let say,
John information saved in Users Table:
name, email, password.
John has log in with his email and password,
and session had been created:
session_register(email);
session_register(password);
John want to post a comment, which will store in Comment Table:
name, comment
How to...