geroido Posted August 21, 2008 Share Posted August 21, 2008 Hi Not sure if this is the right place to post this. I simply want to display my sql query so that I can see what it contains. Not the database results but the query itself. Any ideas? Quote Link to comment Share on other sites More sharing options...
paul2463 Posted August 21, 2008 Share Posted August 21, 2008 instead of using $query = "SELECT * FROM table where whatever"; mysql_query($query) or die ("Error in query" .mysql_error()); use $query = "SELECT * FROM table where whatever"; echo($query); Quote Link to comment Share on other sites More sharing options...
geroido Posted August 21, 2008 Author Share Posted August 21, 2008 Hi paul2463 That's it. Thanks. I can see now that my query is empty. Quote Link to comment 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.