1.采用PDO防SQL注入的形式操作
public static function addData($data){
return DB::insert("insert into kao_article(title,content) values (:title,:content)",[':title' => $data['title'],':content' => $data['content']]);}
1.采用PDO防SQL注入的形式操作
public static function addData($data){
return DB::insert("insert into kao_article(title,content) values (:title,:content)",[':title' => $data['title'],':content' => $data['content']]);}