if($_POST["Save"]){
$str="update centrall set ('".$_POST["cen_cen"]."','".$_POST["quan_cen"]."','".$_POST["bin_cen"]."','".$_POST["toatal"]."','".$_POST["status_cen"]."','".$_POST["date"]."') ;";
mysql_query($str) or die (mysql_error()); // ติดต่อฐานข้อมูล
}
if($_GET['do']=="edit") //เป็นการคำสั่งในแก้ไขข้อมูล
{
$a = mysql_query("select cust.no_cus, cust.name_cus, cust.ser_cus, cen.cen_cen,cen.quan_cen ,cen.bin_cen,cen.total,cen.status_cen, cen.date from sa_customer cust
left join centrall cen on cen.no_cus = cust.no_cus
where cust.no_cus = '".$_GET['id']."'
order by date desc
limit 0,1; ") or die (mysql_error());
$objResult = mysql_fetch_array($a);
มันบอก You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('250','3','30','','ชำระแล้ว','')' at line 1