在数据库执行是有结果的但是换成php mysql执行就没有结果了$sql = "SELECT goods.*,seller.name name2,brand,regionId FROM goods,seller where goods.seid = seller.seid and goods.type='$goodstype'".$_SESSION'goodsFilter';var_dump($sql)的结果
$sql2 = "SELECT goods.*,seller.name name2,brand,regionId FROM goods,seller where goods.seid = seller.seid and goods.type='新品出售' and seller.brand in ('小米')";var_dump($sql2)
求大神看一看,快哭了不知道长度为啥不一样,应该排除空格
- 2 回答
- 0 关注
- 305 浏览
添加回答
举报
0/150
提交
取消