摘要:
//新增 public function add() { $user = new user(); $user->uid = 7; $user->uname = '六元'; $user->email = '111qq.com'; $user->birthday = strtotime('1989-7-11'); if ($user->save()) { User::get(1); echo User 阅读全文
摘要:
//插入数据 $res = Db::execute('insert into phptab(info) values("小张")'); dump($res); //修改数据 $res = Db::execute('update phptab set info="你好tp" where id=1'); //删除数据 $res = Db::execute('delete from phptab whe 阅读全文