search

Home  >  Q&A  >  body text

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?

$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)."<br>";
===========================================
返回结果:1
已更新成功
影响行数:0
在iis空间下提示是成功的但是数据库里的内容是没有更新,求解。
流沙流沙2276 days ago1139

reply all(1)I'll reply

  • 墨承

    墨承2018-08-28 08:55:53

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

    reply
    0
  • Cancelreply