01 2015 档案

摘要:/** * 获取菜单 * @param number $id * @return multitype: */ public function menu($id = 0) { $menu = M ( 'menu' ); $arrlist = array (); // 数组必须初始化,否p... 阅读全文
posted @ 2015-01-28 15:59 Coding_Yong 阅读(191) 评论(0) 推荐(0) 编辑
摘要:1,$data存放实体:$data['title'] = I('post.title'); // 标题 $data['content'] = I('post.content'); // 正文 $data['postdate'] = I('post.postdate'); // ... 阅读全文
posted @ 2015-01-19 17:23 Coding_Yong 阅读(772) 评论(0) 推荐(0) 编辑
摘要:第一种方法$data = M('news')->field("title,date_format(postdate,'%Y-%m-%d') as postdate,content")->where($map)->limit(1)->find(); var_dump( M... 阅读全文
posted @ 2015-01-19 16:49 Coding_Yong 阅读(2075) 评论(0) 推荐(0) 编辑
摘要:select * from a;select *from b;用分号结束。 阅读全文
posted @ 2015-01-19 16:46 Coding_Yong 阅读(524) 评论(0) 推荐(0) 编辑
摘要:select date_format(postdate,'%Y-%m-%d') from news 阅读全文
posted @ 2015-01-19 16:34 Coding_Yong 阅读(125) 评论(0) 推荐(0) 编辑
摘要:$ss = str_replace(array('年','月','日'), array('-','-',''), $datetime); 阅读全文
posted @ 2015-01-19 15:51 Coding_Yong 阅读(999) 评论(0) 推荐(0) 编辑
摘要:删除 阅读全文
posted @ 2015-01-14 17:12 Coding_Yong 阅读(407) 评论(0) 推荐(0) 编辑
摘要:格式化代码: ctrl+shif+f注销代码:ctrl+/快速找到大括号的结束位置: 鼠标放在大括号的右侧,就能看到结束位置 ; 阅读全文
posted @ 2015-01-12 14:45 Coding_Yong 阅读(147) 评论(0) 推荐(0) 编辑
该文被密码保护。
posted @ 2015-01-06 17:32 Coding_Yong 阅读(6) 评论(0) 推荐(0) 编辑
摘要:1, Dataset; dataset 有个默认的table ,需要用table里面的rows 来判断是否有数据。 DataSet ds = DbHelper.ExecuteDataset(CommandType.Text, strSql.ToString(), parameters); ... 阅读全文
posted @ 2015-01-04 10:44 Coding_Yong 阅读(292) 评论(0) 推荐(0) 编辑
摘要:javascript的作用域 是按照 函数来划分的。网址:http://www.cnblogs.com/rubylouvre/archive/2009/08/21/1551270.html 阅读全文
posted @ 2015-01-04 10:21 Coding_Yong 阅读(182) 评论(0) 推荐(0) 编辑

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