I am trying to insert into a table media and a column membro, a member name when he is logged in and he has uploaded an image/video, with no luck, this is my code that I put in submit.php:
<?php $fbme = $_SESSION['jigowatt']['username'];?>
<?php if (!isset($_SESSION)) session_start();
if(isset($_SESSION['jigowatt']['username'])) {
mysqli_query("INSERT INTO media (membro) values ('$fbme')");
}?>
I don't like to waste your time as I love this site, but some tips will be thanked.
session_start()placement is wrong. It should be at top the document (before the$fbmeline).