当我将上限设置为 %s 的值时,它会出现 sql 语法错误...我可能会出错以及如何修复它..有些人可以纠正我,因为它对于像我这样的新手来说似乎是新的
$insertSQL = sprintf('INSERT INTO kontrak (ID, NAME, T_LAHIR, Country) VALUES (%s,(UPPER(%s)), %s, %s)',
GetSQLValueString($_POST['Id'], 'int'),
GetSQLValueString($_POST['Nama'], 'text'),
GetSQLValueString($_POST['Tarikhlahir'], 'date'),
GetSQLValueString($_POST['Country'], 'text'));
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 ''')), '1983-12-15','42151566'(LONDON' at line 1