這個腳本根本不工作......任何人都可以告訴我我做錯了什麼?PHP腳本沒有更新mysql表
$id = $_POST['id'];
$name = $_POST['name'];
$date = $_POST['date'];
$shortdesc = $_POST['shortdesc'];
$link = $_POST['link'];
$target = $_POST['target'];
$sort = $_POST['sort'];
$html = $_POST['html'];
include('appvars.php');
$query = "UPDATE insight SET name='".$name."' AND SET date='". $date . "' AND SET html='" . $html . "' AND SET shortdesc='" . $shortdesc . "' AND SET link='" . $link . "' AND SET target='" . $target . "' AND SET sort='" . $sort . "' WHERE id='" . $id . "'";
mysqli_query($dbc, $query);
放'回聲($查詢);'SQL查詢後看什麼正在通過 – codingbiz
@tunmisefasipe,最基本的和必須做的事情:) +1 – Jashwant
調用[mysqli_error](http://php.net/manual/en/mysqli.error.php)查詢後是否檢查返回任何錯誤。這是一個良好的做法,一般 – Anirudh