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