07 2020 档案

php excel的使用
摘要:1. 引入类 use PHPExcel; use PHPExcel_IOFactory; use PHPExcel_Reader_Excel5; use PHPExcel_Reader_Excel2007; use PHPExcel_RichText; 2导入 /** * PHPexcel导入 */ 阅读全文

posted @ 2020-07-24 13:48 vermouthmo 阅读(312) 评论(0) 推荐(0)

lave框架增删改查
摘要:添加数据 // $arr=['type=>我的天']; // DB::table('book')->insert($arr); // // 添加后获取id // $id=DB::table('book')->insertGetId($arr); // var_dump($id); // // 更新 阅读全文

posted @ 2020-07-20 11:09 vermouthmo 阅读(159) 评论(0) 推荐(0)

laravel 框架
摘要:// 路由访问控制器方法 // Route::get('/','Intt@index'); //get方法 //Route::Post('/','Inttx@index'); //post方法 // 使用多个方法 //Route::match(['post','get'],'/','Intt@ind 阅读全文

posted @ 2020-07-17 16:57 vermouthmo 阅读(91) 评论(0) 推荐(0)

tp5控制器增删改查
摘要:// $data=['type'=>'专辑']; 构造数据 // db('book')->insert($data); 添加 // Db::name('book')->insert($data); // $userId = Db::name('book')->getLastInsID();添加主键i 阅读全文

posted @ 2020-07-07 16:57 vermouthmo 阅读(287) 评论(0) 推荐(0)

tp5控制器
摘要:namespace app\index\controller; use think\Controller; class Index extends Controller //继承父类 { //public function _initialize(){ //echo '初始化'; //初始化 pub 阅读全文

posted @ 2020-07-06 16:56 vermouthmo 阅读(132) 评论(0) 推荐(0)

导航