上一页 1 2 3 4 5 6 ··· 17 下一页
摘要: 缓存数据,这个并不是暂存的缓存,而是写入了内存的缓存 通过一个例子来书写:缓存数据 一、书写php和html页面的基本功能 既然是用smarty模板,那么前端和后端要分开写了 (1)php页面 1 2 3 4 5 6 7 8 9 10 11 12 <?php $filename = "../cach 阅读全文
posted @ 2017-04-27 11:28 周全264 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 一、简单查询 1.最简单查询(查所有数据)select * from 表名 注意:* 代表所有列,并不是代表所有行例:select * from test 2.查询指定列select 列名,列名 from 表名例:select code,name from test 3.修改结果集的列名 assel 阅读全文
posted @ 2017-04-26 15:31 周全264 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 注释语法:#注释语 一、T-SQL语句注意:1.语句写完后用“分号;”代表这一句结束2.列结束用逗号,最后一列写完不用写逗号3.符号一定是英文的 关键字:主键:primary key外键:foreign key 非空索引:not null先建主表,在建从表;从表的外键语法:外键+列+引用+主表(列) 阅读全文
posted @ 2017-04-26 15:30 周全264 阅读(336) 评论(0) 推荐(1) 编辑
摘要: smarty模板的作用可以让前端和后端分离(也就是前端的显示页面和后端的php代码)。 smarty模板的核心是一个类,下载好的模板中有这么几个重要的文件夹 (1)libs核心文件夹(2)int.inc.php这是入口文件(3)plugins:自己写的插件文件夹(4)templates_c:存放编译 阅读全文
posted @ 2017-04-26 14:04 周全264 阅读(350) 评论(1) 推荐(0) 编辑
摘要: 一维数组:var attr = [1,2,3,4,5,6];只有一个 二维数组:var attr = [[1,2,3,4],[5,6,7,8],[10,11,12,13]];alert[大数组][大数组中的某个小组的数值];一个数组里又有数组 1 2 3 4 5 6 7 8 9 10 11 12 1 阅读全文
posted @ 2017-04-26 13:57 周全264 阅读(466) 评论(0) 推荐(0) 编辑
摘要: 一、使用GET调用Phpcms V9指定id页面数据方法 {pc:get sql="SELECT * FROM cmsyou_news WHERE id='55'" cache="3600" return="data"}{loop $data $val}{$val[content]}{/loop}{ 阅读全文
posted @ 2017-04-25 09:11 周全264 阅读(676) 评论(0) 推荐(0) 编辑
摘要: 标题 title 关键字 keywords 描述 description 来源 copyfrom 允许访问 allow_visitor==1 thumb 缩略图 {template "content","header"} 引入头{template "content","footer"} 引入尾 {p 阅读全文
posted @ 2017-04-25 09:09 周全264 阅读(352) 评论(0) 推荐(0) 编辑
摘要: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 29 30 31 32 33 34 35 36 ... 阅读全文
posted @ 2017-04-18 18:12 周全264 阅读(1914) 评论(0) 推荐(0) 编辑
摘要: 从首页(index.html)中点开的内容网页叫单网页(page.html) 从列表(list.html)中点开的网页叫内容页(show.html) 从导航栏的栏目中下拉的列表栏目叫栏目列表页(category.html) 顶部(header.html) 底部(footer.html) 阅读全文
posted @ 2017-04-14 17:35 周全264 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 获取父分类下面的子分类 {loop subcat(77) $k $v}{php $subcatid[] = $k;}{/loop}<?php $subcatid = implode(',', $subcatid);?> 结果可以用在sql 的in子句中 {template "content","he 阅读全文
posted @ 2017-04-14 17:09 周全264 阅读(350) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 17 下一页