This php assertion works efficiently:
if (empty($error) && $_POST['set_p_v'] == 0 && $pockets >=1)
//echo '<script sort="textual content/javascript"> $("#myModal").modal("present")</script>';
$db->rawQuery("UPDATE ".T_USERS." SET `pockets` = `pockets` - 0.50 WHERE $pockets = $user->pockets");
as you possibly can see I attempted to echo a modal when situations had been met, however no success. No echo, however the Type, that the modal html is inside, shows and ‘undefined’ type alert, upon submit (I put the JS on the backside of the html file).
So, then I commented out the echo, as you possibly can see. And tried candy alert, like so, throughout the html type web page:
$(doc).prepared(operate()
$("upload-form").on('#submit-btn',operate(e)
$(".set_p_v").every(operate()
e.preventDefault();
var enter = $(this);
if(enter.val() == "0")
swal(enter.attr("0") + "pockets >=1");
return false;
swal("some extra information")
)
);
);
<script src="https://information.google.com/__i/rss/rd/articles/sweetalert2.min.js"></script>
<hyperlink rel="stylesheet" href="sweetalert2.min.css">
with out success. Success can be upon 0 entered into the shape discipline (and pockets >1), then submit is chosen and upon submit chosen then the alert message shows.
Any steering is appreciated