Ask an expert: The same update code cannot be updated after being changed from the Linux space to the IIS space. What is the reason?
流沙
流沙 2018-08-21 16:26:41
0
1
1067
$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空间下提示是成功的但是数据库里的内容是没有更新,求解。
流沙
流沙

reply all (1)
墨承

Check whether pdo and mysqli are turned on in the php.ini configuration file in your IIS environment

    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!