This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTimeout(function() { your_func(); }, 5000); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ini_set('display_errors', '1'); | |
ini_set('display_startup_errors', '1'); | |
error_reporting(E_ALL); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#city') | |
.append($("<option></option>") | |
.attr("value", item) | |
.text(item)); | |
$('#city').trigger('change'); | |
// remove all options | |
$('#city').empty().trigger("change"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#myModal').modal('toggle'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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() | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$file_pointer = '../' . $_POST['path']; | |
if (!unlink(realpath($file_pointer))) { | |
echo ("$file_pointer cannot be deleted due to an error"); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.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'); |
OlderNewer