摘要: 存详细商品或者其他信息的时候 mysql 字段设计为 blob类型 存数据库时进行转换: 函数 :htmlspecialchars($data) 取出来的时候要转义 函数 :htmlspecialchars_decode() 阅读全文
posted @ 2017-08-29 16:40 三七、 阅读(487) 评论(0) 推荐(0) 编辑
摘要: 1.使用explain语句去查看分析结果 如explain select * from test1 where id=1; 会出现:id selecttype table type possible_keys key key_len ref rows extra各列。 其中, type=const表 阅读全文
posted @ 2017-08-29 11:42 三七、 阅读(348) 评论(0) 推荐(0) 编辑