删除b表中与a表不同的记录 delete from b where not exists( select * from a where a.id=b.id and a. name =b. name ) delete from b where b.id not in ( select a.id from a) or b. name not in ( select a. name from a) delete from v9_pho
update v9_hits SET hitsid = REPLACE(hitsid,c-12-,c-13-) where 1 = ( case when(select COUNT(*) from v9_photo where id=replace(hitsid,c-12-,))0 then 1 else 0 end) updatev9_hitsSEThitsid=REPLACE(hitsid,c-12-,c-13-) fromv9_hits,v9_photowhereid=
删除自带的WAP版。用手机打开ECSHOP,就会跳转到mobile文件夹,如果打开wap功能,就能看到wap版得网站,且有BUG,难看。 但目前智能手机、PAD、IPhone、Android可以跟电脑一样浏览和购物。
(1)单网页: {loop $arrchild_arr $cid}!--只适应用单网页-- li {if $catid==$cid}class=cur_link{/if}a href={$CATEGORYS[$cid][url]}/{$CATEGORYS[$cid][catname]}/a/li {/loop} (2)模型列表页: {pc:content action=category catid=$pare
{template content,header} ----------调用根目录下phpcms\template\content\header文件 {CHARSET}-------------------------------------字符集 (gbk或者utf-8) {if isset($SEO[title]) !empty($SEO[title])} {$SEO[title]}{/if} {$SEO[sit
1.截取调用标题长度 {str_cut($r[title],36,)} 2.格式化时间 调用格式化时间 2011-05-06 11:22:33 {date(Y-m-d H:i:s,$r[inputtime])} 3.多栏目调用多推荐位调用 调用需求:文章范围为59 60 61三个栏目,并且推
{catpos($catid)} 显示文章位置导航 {$CATEGORYS[$catid][url]} 显示当前栏目链接 {$CATEGORYS[$catid][catname]} 显示当前栏目名称
{php $sql=select arrchildid from v9_category where catid=1 ;} !--表名自己改,要什么栏目下的文章总数就填catid=什么,当前的话填catid=$catid就可以了 -- {pc:get sql=select count(*) num from v9_news where catid in
很多朋友在用Phpcms做站时,具体需要在列表页、首页调用文章列表调用文章的点击量和评论排行,那么怎么才能做到在Phpcms v9首页、频道页、列表页、推荐位等页面获取文章浏览量和评
稍微改一下phpcms/libs/functions/global.func.php文件中的thumb函数。 第一步:将函数thumb默认参数$height = 100改为$height = 0; 第二步:找到这句if($width=$width_t || $height=$height_t) return $imgurl; (大约
方法一,摘自discuz /* * * * 根据php的$_SERVER[HTTP_USER_AGENT] 中各种浏览...
no-siteapp协议 Siteapp支持的no-siteapp协议为如下两种形式: 1. HTTP Respons...
Jquery countUp.js数字变换和滚动事件监听的实现代码片段,以下代码为项目开发...
原字符串1,2,3,4,5,6, 去掉最后一个字符,,最终结果为1,2,3,4,5,6 代码如下: $...
video.js一款免费跨浏览器的视频播放器插件,非常不错的视频播放器。 官方网站...
色相 色调(Hue Tone)体系的最初来源是根据人的语言对颜色的描述:对偏白的颜...
有些时候,我们进行多条件组合查询,将得到的结果翻到第二页的时候,由于查询条...
测试laravel torann/geoip扩展包,运行tinker测试,报错如下: BadMethodCallEx...