Skip to content

Instantly share code, notes, and snippets.

mysqli_autocommit($conn, FALSE);
mysqli_query($conn, "UPDATE withdrawal_request SET STATUS='1',REMARK='$remark' WHERE ID=$id");
mysqli_query($conn, "UPDATE wallet_transaction SET REMARK='$remark' WHERE SOURCE=$id");
if (mysqli_commit($conn)) {
echo 'Accepted';
} else {
<script>
function loadDoc() {
var data = new FormData();
data.append('id', id);
var xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("demo").innerHTML = this.responseText;
}
setTimeout(function() { your_func(); }, 5000);
ini_set('display_errors', '1');
ini_set('display_startup_errors', '1');
error_reporting(E_ALL);
$('#city')
.append($("<option></option>")
.attr("value", item)
.text(item));
$('#city').trigger('change');
// remove all options
$('#city').empty().trigger("change");
$("#formId").submit(function(e) {
e.preventDefault();
var form = $('#userData')[0];
var formData = new FormData(form);
$.ajax({
type: "POST",
url: "filepath/filename",
processData: false,
contentType: false,
data: formData,
$('#myModal').modal('toggle');
<video autoplay="" loop="" controls="" width="640" height="480">
<source type="video/mp4" id="player" src="">
</video>
// To pause all video
$("video").each(function() {
this.pause()
});
$file_pointer = '../' . $_POST['path'];
if (!unlink(realpath($file_pointer))) {
echo ("$file_pointer cannot be deleted due to an error");
}
$('.readMore').change(function(e) {
e.preventDefault();
var div = $(this).parent();
div.find("p:first").css('-webkit-line-clamp', 'unset')
div.find("label:first").css('display', 'none')
});
$('.boxOverflow').focusout(function(e) {
e.preventDefault();
console.log('out');