$str = "UPDATE tb_Equipment
SET ID_Equipment_Type = ".$_POST['ID_Equipment_Type'].",
ID_Contract = ".$_GET['ID_Contract'].",
ID_Brand = ".$_POST['ID_Brand'].",
Spec = '".$_POST['Spec']."',
Standard = ".$_POST['Standard'].",
Budget_Price = ".$_POST['Budget_Price'].",
Acc_Price = ".$_POST['Acc_Price']."
WHERE ID_Equipment LIKE ".$_GET['ID_Equipment'];
มันขึ้น error แบบนี้ครับ
Fatal error: Uncaught exception 'com_exception' with message '<b>Source:</b> Microsoft OLE DB Provider for ODBC Drivers<br/><b>Description:</b> [Microsoft][ODBC Microsoft Access Driver] Syntax error in UPDATE statement.' in C:\AppServ\www\test\Contract_Equip1.php:349 Stack trace: #0 C:\AppServ\www\test\Contract_Equip1.php(349): com->Open('UPDATE tb_Equip...', Object(com), 1, 3) #1 {main} thrown in C:\AppServ\www\test\Contract_Equip1.php on line 349
echo $str ออกมาได้แบบนี้ครับ
UPDATE tb_Equipment SET ID_Equipment_Type = 9, ID_Contract = 14, ID_Brand = , Spec = 'ggg', Standard = NO, Budget_Price = 1000, Acc_Price = 800 WHERE ID_Equipment LIKE 43