This is a basic (so I thought) working registration form, I went through it and didn't see any gaping hole in my script.
My main issue is that they code is running fully with no errors, however the final echo statement isn't appearing and the details have not been inserted when I look back at my table in phpMyAdmin.
<? php
require 'connect.php';
if (isset($_POST['username', 'password', 'firstname', 'lastname', 'email', 'age']){
$username = $_POST['username'];
$password = $_POST['password'];
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$email = $_POST['email'];
$age = $_POST['age'];
$query = "INSERT INTO 'user_details'.'user_login_details' ('id', 'username', 'firstname', 'lastname', 'email', 'password', 'age) VALUES (NULL, '$username', '$firstname', '$lastname', '$email', '$password', '$age')";
$result = mysqli_query($query);
if ($result == true){
echo "User Created Successfully. Welcome to the family !";
}
}
?>