Skip to content

Instantly share code, notes, and snippets.

@shiv122
Created July 9, 2021 11:25
Show Gist options
  • Save shiv122/db0d11fcead937d6428d2426c10a2e4b to your computer and use it in GitHub Desktop.
Save shiv122/db0d11fcead937d6428d2426c10a2e4b to your computer and use it in GitHub Desktop.
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 {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment