if($resultado_pendientes>=1){
echo "alert(\"Usted posee 1 solicitud cerrada parcialmente por el departamento de sistemas, valide y cierrela antes de crear otra nueva.\");
document.location=(\"./listTicketUnrevised.php?active=0\");";
}
?>
Good, I need help with this code that I have, which generates a current alert and I want to change it for the sweet alert.
The problem is that it always gives me errors. I want to use the warning of that library but I do not know how to implement it ...
doubt 1 I do not understand why the \ inside the alert are used but I am seeing that without that the warning message is not printed. doubt 2 when changing what is inside the echo quotes I get an error Parse error: syntax error, unexpected '=' Try putting the document location in the echo but it still does not work.