05 2022 档案
摘要:$array = [ ['id' => 1, 'pid' => 0, 'name' => '河南省'], ['id' => 2, 'pid' => 0, 'name' => '山东省'], ['id' => 3, 'pid' => 0, 'name' => '四川省'], ['id' => 4, '
阅读全文
摘要:链接:https://pan.baidu.com/s/1NlPA0IpAFZbjnVMjJ3NXfA 提取码:7768
阅读全文
摘要:直接上代码 $fen 是数组 $jisuanfen = array_sum($fen); //数组中所有数字相加
阅读全文
摘要:直接上代码 PHP判断数组中存在某个索引下标: $array=[ 'aa'=>'aaaa', 'bb'=>'bbbb', 'cc'=>'cccc']; echo array_key_exists('bb', $array); //打印返回 true echo array_key_exists('pp
阅读全文
摘要:直接上代码 添加唯一索引: ALTER TABLE `表名` ADD UNIQUE `字段名` 清除唯一索引: ALTER TABLE `表名` DROP INDEX `字段名`
阅读全文
摘要:$jisuand是数组: array(2) { ["1. 1+1=?"]=> string(3) "A.2" ["2. 1+2=?"]=> string(3) "A.2" } foreach ($jisuand as $k4=>$v4) { $kk4[]=$k4; $vv4[]=$v4; } //运
阅读全文
摘要:index视图 {extend name="layout/common" /} {block name="title"}人员管理{/block} <!--<link href="https://kodo.79524795.vip/jquery/normalize.css" rel="styleshe
阅读全文
摘要:安装一直报错 , 挠头一下午终于弄好了。怀着无比激动的心情,写下这篇文章! TP框架根目录 CMD 直接键入:composer require qiniu/php-sdk 发现报错了;提示 解决方法: 1.下载myclabs/php-enum,指定下载版本 1.6.6 composer requir
阅读全文
摘要:app目录下
阅读全文
摘要:1.引入Db不同 TP6 :use think\facade\Db; TP5: use think\Db; 2.引入基类不同 TP6 use app\BaseController; class Index extends BaseController TP5 use \think\Controlle
阅读全文
摘要:TP5: <?php namespace app\admin\controller; use think\Db; use think\facade\Session; use \think\Controller; class Index extends Controller { // Controll
阅读全文
摘要:亲测有用 ,直接上代码 <?php /** * Created by PhpStorm. * User: Administrator * Date: 2018/2/28 0028 * Time: 下午 4:37 */ function watermark($source,$water,$postio
阅读全文
摘要:add 视图页面 <div class="layui-form-item"> <label class="layui-form-label">权限</label> <div class="layui-input-block"> <input type="checkbox" name="permiss
阅读全文
摘要:一:apache No input file specified apache No input filespecified,今天是我们配置apache RewriteRule时出现这种问题,解决办法很简单如下 打开.htaccess 在RewriteRule 后面的index.php教程后面添加一
阅读全文
摘要:<img style="opacity:0.4;" src="../../static/home/img/beiji.png" class="bg_image"> opacity:0.4; 数字越大颜色越深
阅读全文
摘要:if($id ==29 ){Header("Location: https://www.guancha.cn/XiYaZhou/2022_05_01_637734.shtml"); exit();}else if($id ==30){ Header("Location: https://www.al
阅读全文
摘要:.ft-list ul { display: flex; /*flex-direction: row;*/ /*flex-wrap: nowrap;*/ flex-flow: row nowrap; justify-content: center; } .ft-list ul li { list-s
阅读全文
摘要:/*包含以下四种的链接*/ a { text-decoration: none; } /*正常的未被访问过的链接*/ a:link { text-decoration: none; color:#000000; } /*已经访问过的链接*/ a:visited { text-decoration:
阅读全文