1
나는 내 PHP 스크립트와 MySQL 데이터베이스를 업데이트하려고하지만 난 메시지가, 문제가와 업데이트는 SQL 상태 : 여기에, 난 당신이 날 도울 수 있기를 바랍니다SQL 구문 오류 PHP
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 'mod = 3, drehtage = 4, schnitttage = 5, dreh = 0, schnitt = 0, off = 0, leiter =' at line 1
가 내 $의 T12 작성하고 정확하게 제공하고 있습니다 -)
$con = mysql_connect('localhost', 'user', 'pass'); if (!$con) { die('Could not connect: ' . mysql_error()); } mysql_select_db("kup_projekte", $con); $aendern = "UPDATE drehs SET name = '".$t1."', drehdatum = '".$t2."', schnittdatum = '".$t3."', kamera = '".$t4."', assi = '".$t5."', mod = '".$t6."', drehtage = '".$t7."', schnitttage = '".$t8."', dreh = '".$t9."', schnitt = '".$t10."', off = '".$t11."', leiter = '".$t12."' Where id = '".$id."'"; $update=mysql_query($aendern); mysql_close($con);
// EDIT //
변수의 $ T1이, 코드는 데이터베이스 (난 그냥 사용자를 편집 + 통과)를 업데이트합니다.
그게 전부입니다. 고맙습니다 !!!!!! – user1749810
도움이 될만한 부분을 올바르게 표시하십시오! – Marcus