会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
小新新2015
导航
博客园
首页
新随笔
联系
订阅
管理
公告
上一页
1
···
4
5
6
7
8
9
10
下一页
2015年4月8日
php取年份区间
摘要: function boundYearList(){ $year=date('Y',NOW_TIME); $a=array(); for($i=0;$iassign('yearlist',$a); }
阅读全文
posted @ 2015-04-08 19:11 小新新2015
阅读(404)
评论(0)
推荐(0)
编辑
2015年4月3日
世界 国家 省份 sql
摘要: -- phpMyAdmin SQL Dump-- version 3.2.4-- http://www.phpmyadmin.net---- Host: localhost-- Generation Time: Jul 02, 2010 at 05:49 AM-- Server version: 5...
阅读全文
posted @ 2015-04-03 11:44 小新新2015
阅读(787)
评论(0)
推荐(0)
编辑
2015年3月31日
相册处理,php中获取一组前缀相同的元素值
摘要: //处理相册start $album=M('greenactionalbum'); $ary1=array(); foreach ($_POST as $key=>$value){ if(strpos($key,'pic...
阅读全文
posted @ 2015-03-31 15:47 小新新2015
阅读(235)
评论(0)
推荐(0)
编辑
2015年3月27日
mysql添加字段
摘要: alter table tsh_greenactionalbum add imgvisible int(11) default null;
阅读全文
posted @ 2015-03-27 17:54 小新新2015
阅读(190)
评论(0)
推荐(0)
编辑
jquery name选择器
摘要: 1,input_video = $('input[name="video"]')2,表示name的值是以???开头的元素 比如$("input[name^='hi']")就会选择以下的元素..
阅读全文
posted @ 2015-03-27 09:59 小新新2015
阅读(781)
评论(0)
推荐(0)
编辑
2015年3月17日
think php volist 使用function.php
摘要: 通常volist标签多用于查询数据集(select方法)的结果输出,通常模型的select方法返回的结果是一个二维数组,对此可以直接使用volist标签进行输出。在控制器中首先对模版赋值,如下例所示:?123$User = M('User'); $list = $User->limit(10)->s...
阅读全文
posted @ 2015-03-17 10:16 小新新2015
阅读(490)
评论(0)
推荐(0)
编辑
2015年3月9日
php去除回车 换行
摘要:
阅读全文
posted @ 2015-03-09 11:46 小新新2015
阅读(251)
评论(0)
推荐(0)
编辑
2015年3月2日
thinkphp缓存的简单使用
摘要: $cache=S('newskey'); if(!$cache){ $cache=M('news')->cache(true,60,'newskey')->where('state=1')->order('publishtime desc')->limit(5)->sel...
阅读全文
posted @ 2015-03-02 13:27 小新新2015
阅读(233)
评论(0)
推荐(0)
编辑
2015年2月27日
thinkphp if标签使用
摘要: value1value2 value3value1 value2
阅读全文
posted @ 2015-02-27 16:28 小新新2015
阅读(214)
评论(0)
推荐(0)
编辑
2015年2月12日
thinkphp URL重写
摘要: 重写规则主要有:规则匹配这正则匹配在前台页面中,我们不需要.index.php文件,所以在项目根目录添加.htaccess文件 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !...
阅读全文
posted @ 2015-02-12 16:43 小新新2015
阅读(375)
评论(0)
推荐(0)
编辑
上一页
1
···
4
5
6
7
8
9
10
下一页