-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminedit.php
More file actions
21 lines (17 loc) · 761 Bytes
/
Copy pathadminedit.php
File metadata and controls
21 lines (17 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?php
$connection = mysqli_connect("localhost","root","","bankaccount");
$database = mysqli_select_db($connection,"bankaccount");
if(isset($_POST["update"])){
$fullname = $_POST["fullname"];
$accountnum = $_POST["accountnum"];
$accountpin = $_POST["accountpin"];
$query = "UPDATE banktable SET fullname = '$fullname',account_number = '$accountnum', account_pin = '$accountpin' WHERE id = '$id'";
$result = mysqli_query($connection,$query);
?>
<script type="text/javascript">
alert("Update Successfull.");
window.location = "accountprofile.php";
</script>
<?php
}
?>