mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
added edit account
This commit is contained in:
13
post.php
13
post.php
@@ -134,6 +134,19 @@ if(isset($_POST['add_account'])){
|
||||
|
||||
}
|
||||
|
||||
if(isset($_POST['edit_account'])){
|
||||
|
||||
$account_id = intval($_POST['account_id']);
|
||||
$name = strip_tags(mysqli_real_escape_string($mysqli,$_POST['name']));
|
||||
|
||||
mysqli_query($mysqli,"UPDATE accounts SET account_name = '$name' WHERE account_id = $account_id");
|
||||
|
||||
$_SESSION['alert_message'] = "Account modified";
|
||||
|
||||
header("Location: accounts.php");
|
||||
|
||||
}
|
||||
|
||||
if(isset($_POST['add_category'])){
|
||||
|
||||
$name = strip_tags(mysqli_real_escape_string($mysqli,$_POST['name']));
|
||||
|
||||
Reference in New Issue
Block a user