'', 'branch1' => '']; // fallback /* --------------------------------- 2. HANDLE FORM SUBMISSION ----------------------------------*/ if ($_SERVER["REQUEST_METHOD"] === "POST") { $about_us = $_POST['about_us'] ?? ''; $branch1 = $_POST['branch1'] ?? ''; $updateSql = "UPDATE footer_content SET about_us = ?, branch1 = ? WHERE id = 1"; $updateStmt = mysqli_prepare($conn, $updateSql); mysqli_stmt_bind_param($updateStmt, "ss", $about_us, $branch1); if (mysqli_stmt_execute($updateStmt)) { echo ""; exit; } else { echo ""; } } ?>