저는이 문제에 대해 지금 주저하고 있습니다. 구문 오류가 무엇인지 파악할 수 없습니다. 나는이 상황에 처해 있었고, 지난 번에는 그렇게 믿을 수 없을 정도로 단순한 것이었고, 나중에 바보 같이 느꼈다. 그러나 여기에 또 다른 시도에있다 :ADD 근처의 SQL 구문 오류
//update database
$q = "
UPDATE
users
SET
id='$edit_id',
name='$edit_name',
bdm='$edit_bdm',
add='$edit_add',
pc='$edit_pc',
location='$edit_outletL',
style='$edit_outletS',
coName='$edit_coName',
coNum='$edit_coTel',
coEmail='$edit_coEmail',
password='$edit_pass'
WHERE
id='$query_title'
";
$edit_query = mysql_query($q) or die("Database Query Error: ". mysql_error());
데이터베이스 쿼리 오류 :
당신은 그것을 키워드이기 때문에 추가 역 인용 부호에 neeedYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'add='Llancadle, Nr Barry', pc='CF62 3AQ', location='rural', style='food', coName' at line 1
'ADD'는 예약어입니다. – Bobby
필드 이름을''add''와 같은 백틱으로 둘러 쌈으로써 필드 이름을 이스케이프 처리합니다. – Nishant
닫을 투표가있는 이유는 무엇입니까? 그렇지 않은가요? 물어 보는 것은 완전히 받아 들일 수있는 질문입니다. –