I'm trying to add a personal contact from the general contacts db table
A user will click the EDIT button then they will view the info before deciding to add it into the personal contact.
I think my problem is that my PHP code can't enter the SESSION name of the logged in user in my SQL INSERT INTO Statement.
Here is the SQL code
if (isset($_POST['add'])) {
$user = $_POST['u_username'];
$contact_username = $_POST['contact_username'];
$savesql2 = "INSERT INTO personal_contacts (id,contact_username, u_username)
VALUES ( '$id','$contact_username', '$user')";
mysqli_query($db, $savesql2);
$_SESSION['message'] = "Contact saved";
header('location: index.php');
}