Also i tried creating customize alert box using html,css and javascript, but my problem is how can I call it in the echo function of PHP?
if (($con -> query($query) === TRUE) &&
($con -> query($query1) === TRUE) &&
($con -> query($query2) === TRUE) &&
($con -> query($query3) === TRUE))
{
echo "<script>alert('Employee Successfully Added')</script>";
}
like if the queries are correct, the customized alert box will pop up.
use sweetalert
<script src="//cdn.jsdelivr.net/npm/sweetalert2@11"></script>
Swal.fire({
position: 'top-end',
icon: 'success',
title: 'Your work has been saved',
showConfirmButton: false,
timer: 1500
})