<?php
if(isset($_POST['fullname'])){
$filename = $_POST['fullname'];
}
if(isset($_POST['email'])){
$email = $_POST['email'];
}
if(isset($_POST['password'])){
$password = $_POST['password'];
}
if(isset($_POST['gender'])){
$gender = $_POST['gender'];
}
//Database connection
$conn = new mysqli('localhost','root','','internship');
if($conn->connect_error){
die('Connection Failed : '.$conn->connect_error);
}else{
$stmt = $conn->prepare("insert into intern (fullname, email, password,gender) values(?,?,?,?)");
$stmt->bind_param("ssss", $fullname, $email, $password,$gender);
$stmt->execute();
echo "sign up succesfully...";
$stmt->close();
$conn->close();
}
?>
This is the code for connection and after submitting the form i got the successful message but in phpmyadmin the data is not showing