$conn = mysqli_connect($servername, $username, $password, $dbname); // Check connection if (!$conn) { die("连接失败: " . mysqli_connect_error()); } //mysqli_query($conn,"set name gbk"); if ($na!=""&&$arr5!=""){ $sql = 'update vod SET vod_ll="$arr5" WHERE vod_op=2 and vod_name="$na"'; } $result = mysqli_query($conn, $sql); echo "影响行数:".mysqli_affected_rows($conn)."
"; =========================================== 返回结果:1 已更新成功 影响行数:0 在iis空间下提示是成功的但是数据库里的内容是没有更新,求解。
Check whether pdo and mysqli are turned on in the php.ini configuration file in your IIS environment