Good evening I was doing an exercise where there is a form of low discharge and modification for clients and invoices. My doubt started since not being able to relate tables through phpmyadmin (using the wamp package), since it tells me a message that it does not support relationships, I decided Instead of the alert appearing at the time of trying to eliminate a client who had pending invoices (as the exercise says), I change it to appear if I want to delete a particular address. Then knowing that, I wanted to know if this code would be good '
$Direc=$_GET["Direc"];
$conexion->query("DELETE FROM cliente WHERE Direccion='$Direc'");
if($Direc="estoesloquenopuedepir"){
echo'<script type="text/javascript">
alert("Tarea Guardada");
window.location.href="index.php";
</script>';
}
'