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

报错:

Unknown column 'oKj5V4xN' in 'where clause'

原因:

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

猜你喜欢

转载自www.cnblogs.com/maoriaty/p/9098756.html