I am trying to make my MySQL table insert stuff through MySQLi but it throws error 1054 Unknown Column saying that one of my values is my column, I dont know what causes this error. here is my code:
$mysqli -> query('INSERT INTO `cities` (`Code`, `Name`, `lattitue`, `longitute`) VALUES ( `' . $_GET['code'] . '` , `' . $_GET['name'] . '` , `' . $_GET['lat'] . '` , `' . $_GET['long'] . '` )')
here is the output:
INSERT INTO
cities
(Code
,Name
,lattitue
,longitute
) VALUES (kllk
,kl
,9458
,6568
)failed: (1054) Unknown column 'kllk' in 'field list'
Thanks, help is greatly appreciated!