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

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -