无法更新mysqli命令 [英] could not update mysqli command
本文介绍了无法更新mysqli命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Hi
I have another issue in Update. Could not be updated. pls help me
if (isset($_POST['update']) && $_POST['update'] != "" )
{
$id=$_POST["id"];
$name = $_POST["name"];
$address = $_POST["address"];
$tel = $_POST["tel"];
$fax = $_POST["fax"];
$email = $_POST["email"];
$website = $_POST["website"];
$type = $_POST["type"];
try
{
$sql="UPDATE bk_customer SET name='$name',address='$address', tel='$tel',fax='$fax',email='$email', website='$website',type='$type' WHERE id='$id'";
$result = mysqli_query($con,$sql) ;
// $result=mysqli_fetch_assoc($con,$sql);
}
catch (Exception $ex)
{
echo $e->getMessage() . "\n";
file_put_contents('PDOErrors.txt', $e->getMessage(), FILE_APPEND);
exit();
}
}
推荐答案
_POST [ ' update'])&&
_POST['update']) &&
_POST [ ' update']!= )
{
_POST['update'] != "" ) {
id =
这篇关于无法更新mysqli命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文