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 'Desc='',Post='' WHERE id=''' at line 1
$result = mysql_query("UPDATE tb_detail SET Type='".$_POST["type"]."',Desc='".$_POST["desc"]."',Post='".$_POST["post"]."' WHERE id='".$_GET["$id_edit"]."' ");
Quote:
Desc
คือคำสวงนครับ ให้ใช้ `Desc`
Code (PHP)
$result = mysql_query("UPDATE tb_detail SET Type='".$_POST["type"]."',`Desc`='".$_POST["desc"]."',Post='".$_POST["post"]."' WHERE id='".$_GET["$id_edit"]."' ");