<?php
include 'db.php';

$id = $_POST['id'];
$phone = $_POST['branch_phone'];
$province = $_POST['province'];
$ntn = $_POST['ntn'];
$strn = $_POST['strn'];

$stmt = $conn->prepare("UPDATE branch_info SET branch_phone = ?, province = ?, ntn = ?, strn = ? WHERE id = ?");
$stmt->bind_param("ssssi", $phone, $province, $ntn, $strn, $id);
$stmt->execute();

header("Location: branch_list.php?success=1");
exit;
