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;
}
网友评论