doucie Posted January 13, 2007 Share Posted January 13, 2007 $result=mysql_query("SELECT * FROM 'query' WHERE 'query_status'='new'");This gets an error message. Quote Link to comment https://forums.phpfreaks.com/topic/34050-problem-with-sql-query-help/ Share on other sites More sharing options...
Barand Posted January 14, 2007 Share Posted January 14, 2007 Don't put table or column names in quotes. Only string literals have quotes.$result=mysql_query("SELECT * FROM query WHERE query_status='new'"); Quote Link to comment https://forums.phpfreaks.com/topic/34050-problem-with-sql-query-help/#findComment-160168 Share on other sites More sharing options...
doucie Posted January 14, 2007 Author Share Posted January 14, 2007 Cheers mate. I think I had tried every combination of single/double qoutes apart from that one!! Quote Link to comment https://forums.phpfreaks.com/topic/34050-problem-with-sql-query-help/#findComment-160423 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.