会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
思念的色彩
博客园
首页
新随笔
联系
订阅
管理
2017年4月
PHP常用函数整理
该文被密码保护。
阅读全文
posted @ 2017-04-17 12:50 思念的色彩
阅读(0)
评论(0)
推荐(0)
编辑
Mysql多字段大表的几种优化方法
该文被密码保护。
阅读全文
posted @ 2017-04-17 12:48 思念的色彩
阅读(1)
评论(0)
推荐(0)
编辑
2017年3月
ajax判断用户名有没有被注册(搬砖)
该文被密码保护。
阅读全文
posted @ 2017-03-24 14:53 思念的色彩
阅读(2)
评论(0)
推荐(0)
编辑
php多种排序
摘要: <?php //冒泡排序 function maopao($arr){ $len=count($arr); for($i = 1;$i<$len;$i++)//循环控制冒泡排序的轮数 { for($k = 0;$k < $len-$i; $k++)//每轮冒出一个数需要比较的次数=元素数量-1 {
阅读全文
posted @ 2017-03-11 16:28 思念的色彩
阅读(85)
评论(0)
推荐(0)
编辑
购物车多选提交订单
摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.or
阅读全文
posted @ 2017-03-06 17:06 思念的色彩
阅读(191)
评论(0)
推荐(0)
编辑
AJAX无刷新加购物车
摘要: <?phpnamespace Home\Controller;use Think\Controller;class ShoppingcartController extends Controller { public function shoppingcart(){ if(IS_AJAX){ if(
阅读全文
posted @ 2017-03-06 17:03 思念的色彩
阅读(184)
评论(0)
推荐(0)
编辑
php常用
摘要: 1.$cid=empty($_GET['cid'])?16:$_GET['cid'];//判断传过来的cid, $count=M('news')->where('category_id='.$cid)->count();查询这个分类下的长度 $page=new \Think\Page($count,
阅读全文
posted @ 2017-03-06 15:09 思念的色彩
阅读(118)
评论(0)
推荐(0)
编辑
通过判断加载遍历首页内容
摘要: public function _initialize(){ $category=M('category');//实例化分类表 $contact=M('contact'); $about=M('about'); $contact=M('contact'); $lis=$contact->where(
阅读全文
posted @ 2017-03-06 14:55 思念的色彩
阅读(122)
评论(0)
推荐(0)
编辑
2017年2月
登陆权限验证
摘要: <?php/** * [vlogin 验证登录] */function vlogin(){ if(empty($_SESSION['alogin'])) //如果登录标识为空,表示未登录 { echo "<script>alert('请先登录!');window.location.href='ind
阅读全文
posted @ 2017-02-27 21:29 思念的色彩
阅读(205)
评论(0)
推荐(0)
编辑
PHP打印数据和mb_substr函数
摘要: <?php/** * [substrC 截取中文字符串] * @param [字符串] $data [要截取的字符串] * @param [自然数] $length [截取后长度] * @param [布尔值] $true [是否拼接...,默认为是] * @return [字符串] [截取后的字符
阅读全文
posted @ 2017-02-27 21:28 思念的色彩
阅读(148)
评论(0)
推荐(0)
编辑
下一页
公告