I am new to PHP. I have developed one PHP page containing a simple form and it's working fine. All data are inserted correctly but sometimes the data is not inserted. Why this happens?
$sql="INSERT INTO form_tbl(name,age,dob) values('$name','$age','$dob')";
$exe=mysqli_query($conn,$sql);
if($exe){
echo "success";
}else{
echo "Submit again";
}