ballhogjoni Posted November 20, 2008 Share Posted November 20, 2008 INSERT INTO Hotels_media ('hotels_id','name','type','url') VALUES ('7', 'bette_middler.jpg', 'right_side', 'http://development.xxxxxxxxxxxxxxxxxxx.com'); Quote Link to comment https://forums.phpfreaks.com/topic/133421-solved-what-is-wrong-with-this-query/ Share on other sites More sharing options...
stig1 Posted November 20, 2008 Share Posted November 20, 2008 U do not need quotes around the column names for example: INSERT INTO Hotels_media (hotels_id,name,type,url) VALUES ('7', 'bette_middler.jpg', 'right_side', 'http://development.xxxxxxxxxxxxxxxxxxx.com'); Quote Link to comment https://forums.phpfreaks.com/topic/133421-solved-what-is-wrong-with-this-query/#findComment-693954 Share on other sites More sharing options...
revraz Posted November 20, 2008 Share Posted November 20, 2008 Change that wording to You cannot have quotes around the column names. Quote Link to comment https://forums.phpfreaks.com/topic/133421-solved-what-is-wrong-with-this-query/#findComment-693977 Share on other sites More sharing options...
fenway Posted November 20, 2008 Share Posted November 20, 2008 I'm sure the intent was backticks. Quote Link to comment https://forums.phpfreaks.com/topic/133421-solved-what-is-wrong-with-this-query/#findComment-694391 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.