prepare($sql); $stmt->bindParam(':channel_id', $channel_id); $result = $stmt->execute(); if ($result) { echo "更新成功!"; } else { echo "更新失败!"; } ?>