Código:
if(!$reg['iduser']){
echo "<script>alert('EL USUARIO NO EXISTE');</script>";
header("Location: index.php");
}




