cyber_alchemist Posted October 4, 2013 Share Posted October 4, 2013 SELECT * FROM tourDB WHERE tour_type = insta_deals I want to get the row where the column tour_type has a value of 'insta_deals' Quote Link to comment https://forums.phpfreaks.com/topic/282701-where-is-my-sytax-error-please-guide/ Share on other sites More sharing options...
Solution Ch0cu3r Posted October 4, 2013 Solution Share Posted October 4, 2013 insta_deals needs to be wrapped in quotes. otherwise mysql will treat it is a column name, not a column value Quote Link to comment https://forums.phpfreaks.com/topic/282701-where-is-my-sytax-error-please-guide/#findComment-1452533 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.