thinkphp 获取数据 并插入数据库
2019-09-30 本文已影响0人
_TAPE_
use think\Request;
public function upload(Request $request){
$data = $request->param('title');
$words = $request->param('words');
$date = date('Y-m-d');
$re = Db::execute("INSERT INTO `page`(`title`, `words`, `time`) VALUES ('$data','$words','$date')");
return $re;
}