Insert row PHP to MySQL -


can spot mistake here? can't seem see wrong. (these values test values) database connection ok.

mysqli_query($con, "insert `test2` (`usrname`, `resname`,` type`, `pricerange`, `vicinity`, `lat`, `lng`)     values ('shyt',             'shytyou',             'rubbish',             'hyper',             'starwars',             23,             321)" ); 

issue having space in type field

` type` 

should be

`type` 

Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -