![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
shuige989
云折断归途
展开
-
php往mysql中存储时“=”的问题
用CI做个项目时,遇到一个问题,其中一个字段是base64转码后的,类似“MnlhMGpZTTNVMTQzNjUwNjQ3Ng==”。 作为查询条件时,始终查不出结果。 sql是这样写的: $where = "user_id=" . $this->data['user_id']. " AND data='" .$this->data['token']. "' AND expire>".原创 2015-07-10 13:41:51 · 478 阅读 · 0 评论 -
php读取和保存base64编码的图片内容
<?php header('Content-type:text/html;charset=utf-8'); //读取图片文件,转换成base64编码格式 $image_file = './4296762_165319032930_2.jpg'; $image_info = getimagesize($image_file); $base64_image_content = "data:{$imag转载 2015-07-07 13:44:29 · 882 阅读 · 0 评论