0){//存在where语句时 $sql .= ' WHERE '.implode(' AND ',$conditions); } $stmt = $mdb2 ->prepare($sql , $ph_type);//准备SQL语句 $rs = $stmt->excute($ph_value);//执行变量绑定和查询 ?>