摘要:
//控制器function show(Request $request){ $page=$request->page?$request->page:1; $size=4; $pian=($page-1)*$size; $sql=DB::select("select * from scores "); 阅读全文
posted @ 2019-10-27 20:11
赵志远的博客
阅读(170)
评论(0)
推荐(0)
摘要:
function add(Da $req){ $file= $req->file("file"); //接前台值 $tu=$file->getClientOriginalName(); //图片路径 $data=$file->move("image",$tu); $all= $req->all(); 阅读全文
posted @ 2019-10-27 20:11
赵志远的博客
阅读(253)
评论(0)
推荐(0)
摘要:
<td><input type="checkbox" name="check" value="{$vo.id}">{$vo.id}</td> <input type="button" class="yes" value="全選"><input type="button" class="no" val 阅读全文
posted @ 2019-10-27 20:10
赵志远的博客
阅读(85)
评论(0)
推荐(0)
摘要:
//批量刪除 阅读全文
posted @ 2019-10-27 20:10
赵志远的博客
阅读(141)
评论(0)
推荐(0)
摘要:
linux装软件方式: systemctl status firewalld.service 查看防火墙systemctl stop firewalld.service systemctl disable firewalld.service 开机 防火墙 不自启 ###Nginx#######安装篇 阅读全文
posted @ 2019-10-27 20:09
赵志远的博客
阅读(256)
评论(0)
推荐(0)
摘要:
linux memcached安装yum -y install libevent libevent-deve yum list memcached yum -y install memcached memcached -h systemctl enable memcached.service vim 阅读全文
posted @ 2019-10-27 20:08
赵志远的博客
阅读(125)
评论(0)
推荐(0)
摘要:
1.vim /etc/my.cnf[mysqld]skip-grant-tables ##追加此行,跳过权限表, 2.重启mysqlsystemctl restart mysqld 3.mysql 登陆mysqlmysql> use mysql;mysql> UPDATE user SET Pass 阅读全文
posted @ 2019-10-27 20:06
赵志远的博客
阅读(86)
评论(0)
推荐(0)
摘要:
注意事项:1. 卸载yum MYSQLsystemctl status mysqlsystemctl stop mysqlsystemctl disable mysqld rpm -qa | grep -i mysqlyum remove mysql-community-server-5.6.40- 阅读全文
posted @ 2019-10-27 20:06
赵志远的博客
阅读(94)
评论(0)
推荐(0)
摘要:
1安装依赖包yum -y install gcc gcc-c++ autoconf automake yum -y install zlib zlib-devel openssl openssl-devel pcre pcre-devel 2安装Gityum install git 3 安装clon 阅读全文
posted @ 2019-10-27 20:05
赵志远的博客
阅读(96)
评论(0)
推荐(0)
摘要:
function lst(){ //定义大小王 $arr=[501,502]; for ($i=100;$i<=400;$i+=100){ $arr=array_merge($arr,range($i+1,$i+13)); } $mon=[[],[],[],[]]; //54张牌发给4个人 每人13 阅读全文
posted @ 2019-10-27 20:05
赵志远的博客
阅读(344)
评论(0)
推荐(0)
摘要:
1:创建一个要提交的文件2 git init 初始化 3 git remote add origin https://github.com/maohongli/cang.git 建立远程连接4 git status5 git add -A 创建6 git commit -m "是" 7 git pu 阅读全文
posted @ 2019-10-27 20:04
赵志远的博客
阅读(141)
评论(0)
推荐(0)
摘要:
//表单@if($v['sex']==0) <td class="se" ss="{{$v['sex']}}" id="{{$v['id']}}" >男</td> @elseif($v['sex']==1) <td class="se" ss="{{$v['sex']}}" id="{{$v['id 阅读全文
posted @ 2019-10-27 20:03
赵志远的博客
阅读(293)
评论(0)
推荐(0)
摘要:
表单//@foreach($res as $k=>$v) <tr id="{{$v->id}}" > <td>{{$v->id}}</td> <td >{{$v->tye}}</td> <td fd="name" > {{$v->name}}</td> <td><a href="#" class=" 阅读全文
posted @ 2019-10-27 20:02
赵志远的博客
阅读(147)
评论(0)
推荐(0)
摘要:
<?phpclass db{ public $table=null; public $pdo; public $where=null; //where 条件 public $field=null; //要查询的条件 public function __construct() { $this->pdo 阅读全文
posted @ 2019-10-27 20:01
赵志远的博客
阅读(123)
评论(0)
推荐(0)
摘要:
function ad(){ $res=DB::table("category")->get(); $res= json_encode($res); $res= json_decode($res,1); $arr= $this->gettree($res,0); var_dump($arr);} f 阅读全文
posted @ 2019-10-27 20:00
赵志远的博客
阅读(101)
评论(0)
推荐(0)
摘要:
//登陆控制器 function actionLogin(){ $name=Yii::$app->request->post("name"); $pass=Yii::$app->request->post("pass"); $res= Yii::$app->db->createCommand("se 阅读全文
posted @ 2019-10-27 19:57
赵志远的博客
阅读(83)
评论(0)
推荐(0)

浙公网安备 33010602011771号