12 2020 档案

摘要:$where['user_id'] = $user_id;$where['buy_id'] = $user_id;$where['_logic'] = 'or';$map['_complex'] = $where;$map['trade_type'] ='1';$map['status'] = ar 阅读全文
posted @ 2020-12-31 09:31 大熊童鞋 阅读(357) 评论(0) 推荐(0) 编辑
摘要:<div class="fk_ban fk_ban1" style="width: 25%;margin: 10px 0;line-height:auto">买多少:</div> <div style="width: 70%;float: left;margin: 10px 0;word-break 阅读全文
posted @ 2020-12-28 16:52 大熊童鞋 阅读(1454) 评论(0) 推荐(0) 编辑
摘要:文字自适应在html页面加入 <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'> <meta name='apple-mobile-web 阅读全文
posted @ 2020-12-28 10:08 大熊童鞋 阅读(1347) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 info=' 阅读全文
posted @ 2020-12-27 23:01 大熊童鞋 阅读(138) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <form acti 阅读全文
posted @ 2020-12-27 22:58 大熊童鞋 阅读(62) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <p><a href 阅读全文
posted @ 2020-12-27 22:55 大熊童鞋 阅读(106) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <p><a href 阅读全文
posted @ 2020-12-27 22:53 大熊童鞋 阅读(138) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 info=' 阅读全文
posted @ 2020-12-27 22:51 大熊童鞋 阅读(103) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 info=' 阅读全文
posted @ 2020-12-27 22:50 大熊童鞋 阅读(61) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 info=' 阅读全文
posted @ 2020-12-27 22:47 大熊童鞋 阅读(271) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 id='hi 阅读全文
posted @ 2020-12-27 22:46 大熊童鞋 阅读(142) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 info=' 阅读全文
posted @ 2020-12-27 22:43 大熊童鞋 阅读(74) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 title= 阅读全文
posted @ 2020-12-27 22:42 大熊童鞋 阅读(58) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 info=' 阅读全文
posted @ 2020-12-27 22:35 大熊童鞋 阅读(341) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <p><img sr 阅读全文
posted @ 2020-12-27 22:34 大熊童鞋 阅读(114) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1>aaaaaa 阅读全文
posted @ 2020-12-27 22:32 大熊童鞋 阅读(236) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <form acti 阅读全文
posted @ 2020-12-27 22:30 大熊童鞋 阅读(283) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 id='hi 阅读全文
posted @ 2020-12-27 22:03 大熊童鞋 阅读(1268) 评论(0) 推荐(0) 编辑
摘要:<!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> <style> *{ font-family: 微软雅黑; } </style> </head> <body> <h1 id='hi 阅读全文
posted @ 2020-12-27 22:01 大熊童鞋 阅读(79) 评论(0) 推荐(0) 编辑
摘要:$categoods1 = M()->db(2,'a')->table('yp_goods')->field( 'goods_thumb,goods_video')->where($map)->select(); 查询goods_thumb,goods_video 用到了field and查询 $U 阅读全文
posted @ 2020-12-21 14:35 大熊童鞋 阅读(2150) 评论(0) 推荐(0) 编辑
摘要:<?php return array( //‘配置项‘=>‘配置值‘ //缓存 //‘DATA_CACHE_TYPE‘ => ‘Memcache‘, //‘MEMCACHE_HOST‘ => ‘tcp://192.168.0.227:11211‘, //‘DATA_CACHE_TIME‘ => ‘3 阅读全文
posted @ 2020-12-21 14:02 大熊童鞋 阅读(408) 评论(0) 推荐(0) 编辑
摘要:<body>//方法一 <form action="03-post-file.php" method="post" enctype="multipart/form-data"> <!-- enctype="multipart/form-data" 必须给form表单指定该属性,否则上传不了文件 -- 阅读全文
posted @ 2020-12-20 21:34 大熊童鞋 阅读(977) 评论(0) 推荐(0) 编辑
摘要:<?php echo date('Y-m-d H:i:s',strtotime('now'));//当前时间戳 2017-01-09 21:04:11 echo date('Y-m-d H:i:s',strtotime('+1second'));//当前时间戳+1秒 2017-01-09 21:04 阅读全文
posted @ 2020-12-19 23:47 大熊童鞋 阅读(442) 评论(0) 推荐(0) 编辑
摘要:$sql =" insert erj_money_dj set usermoney=:usermoney,sellmoney=:sellmoney,status=:status,msg=:msg "; //创建预处理对象 $stmt = $pdo->prepare($sql); //绑定参数 $da 阅读全文
posted @ 2020-12-19 20:11 大熊童鞋 阅读(96) 评论(0) 推荐(0) 编辑
摘要:$pdo = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); //准备SQL语句,占位符我们不再用?,用"命名占位符" $sql="update erj_user set freeze_money=:fr 阅读全文
posted @ 2020-12-19 11:56 大熊童鞋 阅读(260) 评论(0) 推荐(0) 编辑
摘要:$pdo = new PDO("mysql:host=$servername;dbname=$dbname", $username, $password); //返回一个PDOstatement结果集对象 $result= $pdo->query("SELECT user_id,buy_id,num 阅读全文
posted @ 2020-12-19 11:41 大熊童鞋 阅读(252) 评论(0) 推荐(0) 编辑
摘要:1、使用fetchAll函数 $q = $db->query("SELECT count(*) from db;"); $rows = $q->fetchAll(); $rowCount = count($rows);2、使用sql count函数$q = $db->query("SELECT co 阅读全文
posted @ 2020-12-17 10:07 大熊童鞋 阅读(280) 评论(0) 推荐(0) 编辑
摘要:一、准备工作 1.准备一台服务器 链接 https://pan.baidu.com/s/1RbM8sEtXp0eCD_3U0EGIvQ 提取码 euuc 2.准备CentOS8 系统盘 1)CentOS8官网 https://www.centos.org/download/ 二、创建虚拟机以及安装C 阅读全文
posted @ 2020-12-15 13:47 大熊童鞋 阅读(138) 评论(0) 推荐(0) 编辑
摘要:public function get_shenfen($id){ //截取前两位数 $index = substr($id,0,2); $area = array( 11 => "北京", 12 => "天津", 13 => "河北", 14 => "山西", 15 => "内蒙古", 21 => 阅读全文
posted @ 2020-12-15 10:37 大熊童鞋 阅读(791) 评论(0) 推荐(0) 编辑
摘要:pv:综合浏览量,即页面浏览量或者点击量,一个方可在24小时内访问的页面数量。 uv:独立访客,即一定时间范围内相同访客多次访问网站,只计算为1个独立访客 带宽:计算带宽大小需关注两个指标,峰值流量和页面的平均大小 日网站带宽=PV/统计时间(换算到秒)*平均也买你大小(d单位kb)*8 阅读全文
posted @ 2020-12-12 23:27 大熊童鞋 阅读(492) 评论(0) 推荐(0) 编辑
摘要:积分排名 zadd(key, score, member):向名称为key的zset中添加元素member,score用于排序。如果该元素已经存在,则根据score更新该元素的顺序。score分数 member用户名 127.0.0.1:6379> zadd users 5 tom (integer 阅读全文
posted @ 2020-12-09 22:02 大熊童鞋 阅读(1334) 评论(0) 推荐(0) 编辑
摘要:Redis可以做什么? Redis的业务应用范围非常广泛,Redis 可以用在哪些地方? 1、记录文章的评论数、点赞数和点击数(hash)。 2、记录用户的文章 ID 列表 (排序),便于快速显示用户的文章列表 (zset)。 3、记录文章的标题、摘要、作者和封面信息,用于列表展示。(hase)。 阅读全文
posted @ 2020-12-09 21:19 大熊童鞋 阅读(191) 评论(0) 推荐(0) 编辑
摘要:$redis = new Redis(); $redis->connect('127.0.0.1', 6379); //获取客户端真实ip地址 function get_real_ip(){ static $realip; if(isset($_SERVER)){ if(isset($_SERVER 阅读全文
posted @ 2020-12-09 21:14 大熊童鞋 阅读(289) 评论(0) 推荐(0) 编辑
摘要:一、为什么要用redis缓存 1.它把数据存到内存而不是硬盘中,操作缓存就是操作内存,具有高性能。 2.直接操作缓存能够承受的请求是远远大于数据库的,具有高并发 二、redis 和 memcached 的区别 1.redis支持数据持久化,支持将数据保存到磁盘中,重启的时候可以进行再次加载,但mem 阅读全文
posted @ 2020-12-09 21:02 大熊童鞋 阅读(88) 评论(0) 推荐(0) 编辑
摘要:$id = $_GPC['id']; $product= pdo_fetch("select id,title,marketprice,total from ".tablename('ewei_shop_goods')." where id='$id'"); //使用hashtable存储 $red 阅读全文
posted @ 2020-12-09 10:45 大熊童鞋 阅读(212) 评论(0) 推荐(0) 编辑
摘要:$redis = new Redis(); $redis ->connect('127.0.0.1',6379); $data = $redis->get('goods_cache'); if($data){ echo 'get data from redis<br>'; $data = json_ 阅读全文
posted @ 2020-12-09 10:42 大熊童鞋 阅读(1429) 评论(0) 推荐(0) 编辑
摘要:redis的watch multi exec 方法实现秒杀抢购。优点:使用了乐观锁没有锁的等待,比队列方式减少了大量的内存消耗。 watch 监视一个或多个key,如果在事务执行之前这个(或这些)key被其他命令所改动,那么事务将被打断. $redis = new redis(); $result 阅读全文
posted @ 2020-12-09 10:40 大熊童鞋 阅读(690) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示