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'); 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'); 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. 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. 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
Archived
This topic is now archived and is closed to further replies.