1、单引号 变成双引号 $id = '"' . $id . '"';$sql="SELECT * FROM users WHERE id=($id) LIMIT 0,1"; 转载于:https://www.cnblogs.com/yilishazi/p/9020744.html