插入表格時如何糾正語法錯誤?"Insert Into " . $tableName . " (location_address) Values ('$location_address')"在這段代碼中,當變量的值有法語字符時,例如',給出錯誤,我無法修復它。Message: SQLSTATE[42000]: Syntax error or access violation: 1064 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 'Université, Quebec City, QC, Canada')' at line 1, query was: Insert Into addresses_store_location (location_address) Values ('Université Laval, Pavillon Alphonse-Desjardins, Rue de l'Université, Quebec City, QC, Canada')誰能幫我?謝謝
添加回答
舉報
0/150
提交
取消