bbuster79 Posted May 26, 2011 Share Posted May 26, 2011 I'm querying SELECT * FROM 'companies' WHERE `company_name` = `somecompanyname` But I keep getting an error message saying "Unknown column in where clause" I'm not sure why I'm reaching an error with such a simple query. I'm using PHP 5.2.5 and MyAdmin version 3.3.9.2 Link to comment Share on other sites More sharing options...
Jonathon Posted May 26, 2011 Share Posted May 26, 2011 Hi, I think if you change `somecompanyname` to 'somecompanyname' will work as you're using backticks for a string let me know how you get on 1 Link to comment Share on other sites More sharing options...
bbuster79 Posted May 26, 2011 Author Share Posted May 26, 2011 Hi, I think if you change `somecompanyname` to 'somecompanyname' will work as you're using backticks for a string let me know how you get on Thank you sir. Problem solved. Link to comment Share on other sites More sharing options...
Jonathon Posted May 26, 2011 Share Posted May 26, 2011 No problem, just pop back if you have any other queries Link to comment Share on other sites More sharing options...
Recommended Posts