当前位置: 首页 > news >正文

模板建网站怎么做seo某产品网络营销推广方案

模板建网站怎么做seo,某产品网络营销推广方案,唐河网站制作,健康成都官微最新消息数据库中遇到的操作 查询字段是json的某个值 $map[json_extract(goods, "$.brand_id")] (int)$params[brand_id]; //获取数据库中某个字段是json中得某个值,进行查询,goods是表中字段,brand_id是json中要查詢的字段。数据类型一定…

数据库中遇到的操作

  • 查询字段是json的某个值
 $map['json_extract(goods, "$.brand_id")'] = (int)$params['brand_id']; //获取数据库中某个字段是json中得某个值,进行查询,goods是表中字段,brand_id是json中要查詢的字段。数据类型一定要对应要不然查询不出来。
  • 查询结果进行遍历操作:
db('product_plant')->where($map)->order('id', 'desc')->paginate($limit)->each(function ($item, $key) use ($store_id) {//代码逻辑
}
  • 多级下拉
if (isset($params['cat']) && !empty($params['cat'])) {if (count($params['cat']) == 1) {$shop_cat_array = model('store_category')->where(['pid'=>$params['cat'][0], 'store_id'=>$this->auth->id])->column('id');$cat = model('store_category')->where('pid', 'in', $shop_cat_array)->where('store_id', $this->auth->id)->column('id');$map['shop_cat'] = ['in', $cat];}else if (count($params['cat']) == 2) {$cat = model('store_category')->where(['pid'=>$params['cat'][1], 'store_id'=>$this->auth->id])->column('id');$map['shop_cat'] = ['in', $cat];}else {$map['shop_cat'] = $params['cat'][2];}}

$field = ‘p.id’;
s q l = d b ( ′ p r o d u c t ′ ) − > a l i a s ( ′ p ′ ) − > f i e l d ( sql = db('product')->alias('p')->field( sql=db(product)>alias(p)>field(field)->where( w h e r e ) − > u n i o n ( f u n c t i o n ( where)->union(function ( where)>union(function(query) use ( w h e r e , where, where,field) {
q u e r y − > n a m e ( ′ s t o r e p r o d u c t ′ ) − > a l i a s ( ′ p ′ ) − > f i e l d ( query->name('store_product')->alias('p')->field( query>name(storeproduct)>alias(p)>field(field)->where($where);
}, true)->buildSql();
m o d e l = D b : : t a b l e ( model = Db::table( model=Db::table(sql . ’ as a’);
$productIds = $model->column(‘id’);
$map[‘product_id’] = [‘in’, $productIds];

$this->request->domain()

 $bill_money = db('store_bill')->where(array_merge(['comein'=>1],$w))->sum('price')-db('store_bill')->where(array_merge(['comein'=>0],$w))->sum('price');
  • 查看数据库中json字段不符合json结构的:

    SELECT *
    FROM hzqc_product_plant
    WHERE JSON_VALID(goods) = 0;

  • 不符合json结构不能使用json_container()

  • mysql相关函数:json_valid()

  • php密码设置
    $params[‘salt’] = Random::alnum();
    p a r a m s [ ′ p a s s w o r d ′ ] = m d 5 ( m d 5 ( params['password'] = md5(md5( params[password]=md5(md5(params[‘password’]) . $params[‘salt’]);

SELECT * FROM hzqc_product_plant WHERE store_id = 91000003 AND json_extract(goods, " . b r a n d i d " ) = 6074 S E L E C T ∗ F R O M ‘ h z q c p r o d u c t p l a n t ‘ W H E R E ‘ s t o r e i d ‘ = 91000003 A N D g o o d s − > ′ .brand_id") = 6074 SELECT * FROM `hzqc_product_plant` WHERE `store_id` = 91000003 AND goods->' .brandid")=6074SELECTFROMhzqcproductplantWHEREstoreid=91000003ANDgoods>.“brand_id”’ = 6074;

http://www.hkea.cn/news/604000/

相关文章:

  • 如何做电子书网站域名站长工具
  • 物联网平台有哪些排名优化外包公司
  • 秦皇岛汽车网站制作数字营销工具
  • 培训教育的网站怎么做东莞做网站的联系电话
  • 云南做网站的公司外贸谷歌优化
  • 网页设计学徒培训可试学巢湖seo推广
  • 让顾客心动的句子seo模拟点击软件源码
  • 设计类专业包括哪些kj6699的seo综合查询
  • 手机网站制作哪家好查关键词
  • 米拓企业网站管理系统电商培训机构排名前十
  • 做效果图有哪些网站seo点击排名
  • 网络营销推广网站收录seo推广排名平台有哪些
  • 产品经理如何看待网站开发广州软件系统开发seo推广
  • wordpress 忘记管理员如何做网站seo
  • app和网站哪个有优势淘宝关键词排名
  • wordpress该域名宁波网站seo公司
  • 建购物网站怎么建呀简单的网站建设
  • 江苏省建设教育协会网站首页百度知道合伙人答题兼职入口
  • 做优化的网站平台搭建
  • 做网站需要多久网络推广是什么专业
  • 厦门加盟网站建设线上推广营销
  • 定制网站案例seo搜索引擎优化薪酬
  • 网站制作成功后怎么使用浏览器观看b站视频的最佳设置
  • 一家专门做开网店的网站北京seo专员
  • 专业企业网站搭建服务头条权重查询
  • 去哪儿网站上做民宿需要材料免费的黄冈网站有哪些平台
  • 网站建设网现在推广什么app最挣钱
  • 嘉兴装修公司做网站安装百度到桌面
  • 电商网站特点外贸营销网站建站
  • 上海市住房城乡建设管理委员会网站网络营销软文范例大全800