Be kind, I am still learning, I have made this code but it didn't work, I have tried everything, it is suppose to when an user is logged in and someone send an image the member name is recorded at the database:
if (!isset($_SESSION[sforum_.'sforum_logged_in']));
if(isset($_SESSION[sforum_.'sforum_user_username'])) {
mysqli_query(INSERT INTO media (membro) VALUES ('$_SESSION[sforum_.'sforum_user_username']'));
} else {
Echo "erro";
}
It gives an error:
Parse error: syntax error, unexpected T_STRING