摘要: 1 public function ajaxxiu(request $request) 2 { 3 $id = $request->post('id'); 4 $fd = $request->post('fd'); 5 $new_val = $request->post('new_val'); 6 $res = DB::table('users')->... 阅读全文
posted @ 2019-07-15 14:40 情定今生~~~ 阅读(135) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 7 8 展示頁面 9 10 11 12 數據展示頁面 13 14 15 {{--@csrf--}} 16 17 18 編號 19 用戶名 20 性別 21 郵箱 22 創建時間 23 ... 阅读全文
posted @ 2019-07-15 14:38 情定今生~~~ 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1 //控制器層 2 3 public function ajaxsex(request $request) 4 { 5 $id = $request->get('id'); 6 $fd = $request->get('fd'); 7 if ($fd=="男"){ 8 $fd="女"; 9 DB::table("use... 阅读全文
posted @ 2019-07-15 14:35 情定今生~~~ 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1 //控制器層 2 public function update(request $request) 3 { 4 $id = $request->get('id'); 5 $data = DB::select("select * from users where id='$id'"); 6 $data = json_encode($data); 7 ... 阅读全文
posted @ 2019-07-15 14:30 情定今生~~~ 阅读(1216) 评论(0) 推荐(0) 编辑
摘要: 1 post('page') ? $request->post('page') : 1; 19 //每頁顯示條數 20 $size = 3; 21 //查詢數據總條數 22 $count = count(DB::select("select * from week_type")); 23 //查詢數據總頁數 24 ... 阅读全文
posted @ 2019-07-15 14:26 情定今生~~~ 阅读(336) 评论(0) 推荐(0) 编辑
摘要: //控制器層 //模型層 //視圖層 //註冊頁面 阅读全文
posted @ 2019-07-15 14:22 情定今生~~~ 阅读(388) 评论(0) 推荐(0) 编辑