No need to have ''
for the table column , it’s needed for the variable that need to be inserted into the table column.
Between, remove the ;
after )
.
The correct code should be looked like this:
$query = "INSERT INTO Zakazes(
id, dateDelivery, timeCok, nameClient, phoneClient, metro,
adress, comments, product, summ, skidka, result, cupon,
cuponPin, cuponBron, timeDelivery) VALUES ('NULL', '$a', '$b',
'$c', '$d', '$e', '$f', '$g', '$h', '$i', '$j', '$k',
'$l', '$m', '$n', '$o')";
2
solved MySql query don’t work [closed]