数据库报错Unknown column 'oKj5V4xN' in 'where clause'

报错:

Unknown column 'oKj5V4xN' in 'where clause'

原因:

查询字段需加引号
$query = $this->db->query('select * from userinfo where openId="'.$openid.'"');

 

posted @ 2018-05-28 10:18  maoriaty  阅读(194)  评论(0编辑  收藏  举报