prepare($sql); $stmt->execute([ ':clave' => 'banner_text', ':valor' => $banner_text ]); // Redirect back to the info page header('Location: configuracion.php'); exit; } catch (PDOException $e) { // For a real app, you might log this error and show a user-friendly message die("Error al guardar en la base de datos: " . $e->getMessage()); } } else { // If not a POST request, just redirect away header('Location: info_producto.php'); exit; }