<?php

require "data_operate.php";
if ($_REQUEST['operate_type'] === "get_one_news") {
    //创建操作对象
    $request = new open_news($_REQUEST['news_id'], $_REQUEST['table_name']);
    //连接数据库
    $request->connect_database();
    //执行sql代码并返回
    echo $request->get_one_news();
    //关闭数据库连接
    $request->close();
}