exec("CREATE TABLE IF NOT EXISTS `clients` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(150) NOT NULL, `phone` varchar(20) DEFAULT '', `email` varchar(150) DEFAULT '', `address` text DEFAULT NULL, `notes` text DEFAULT NULL, `is_blocked` tinyint(1) DEFAULT 0, `created_at` timestamp NOT NULL DEFAULT current_timestamp(), PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4"); } catch(Exception $e) {} // Block client if (isset($_GET['block'])) { $id = (int)$_GET['block']; try { $pdo->prepare("UPDATE clients SET is_blocked=1 WHERE id=?")->execute([$id]); $msg = "