I have a registration form with some validation above, but doesn´t sends any data in the database, it worked before tough but then someone touched in it and since does´t work anymore. However I am pretty sure that in this part hasn´t been made any changes. The validation works also header location sends me to pay.php when I submit the form. And I don´t get any error message. It´s kinda weird.
if( !$error ){
$query = "INSERT INTO `registration` (email, firstname, lastname, age, password, nationality) VALUES
('$email', '$fname','$lname','$age',$pass,'$nationality')";
$result = mysqli_query($conn, $query);
if ($result){
$smsg ="Succesfull Registration";
} else{
$fmsg ="User Registration Failed";
}
if (isset($_POST['btn-signup'])){
header("location:pay.php");
}
}