1.缓存问题:本地编写代码测试正常,上传到linux 或unix系统上,结果导致样式丢失(强制刷新就正常),这个与写css的格式或方法有关;
2.编码中相关变量:$pay_table_name=‘msc_home_pay_user_card_‘.$group_code.‘‘; 和$pay_table_name=‘msc_home_pay_user_card_‘.$group_code.; 写法效果一样,若使用TP的连贯操作的带入变量注意:如:$card_type=M(‘msc_member_card‘)->where(‘shop_code=‘.$shop_code.‘‘)->select();
该连贯操作,windos下正常,在linux下会报一下错误:把$shop_code当成字段名称 来查了;
-
Column not found: 1054 Unknown column ‘AZ12345676‘ in ‘where clause‘
应该这样写where的条:$card_type=M(‘msc_member_card‘)->where("shop_code=‘.$shop_code.‘")->select();
使用双引号,或者直接使用数组变量,不使用字符串也可以;
时间: 2025-01-18 10:44:24