В моем файле есть следующие строки кода PHP вместе с другим кодом:
$command = "INSERT INTO inventory_items (Index, Name, Price) VALUES (NULL, 'Diamond', '3.99')";
$insertion = mysql_query($command) or die(mysql_error());
if ($insertion == FALSE)
{
echo "Error: Insert failed.";
}
else
{
echo "Insert successful.";
}
Он продолжает возвращать эту ошибку:
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 'Index, Name, Price) VALUES (NULL, 'Diamond', '3.99')' at line 1
myAdmin говорит, что я использую клиент MySQL версии 5.0.91. Что я делаю неправильно? Я просто не могу понять это! Я много пытался искать ...