fife Posted April 19, 2011 Share Posted April 19, 2011 like so... echo" $query = mysql_query("SELECT * FROM table WHERE memberID = ".$User['memberID'].""); "; ?????????????? Quote Link to comment https://forums.phpfreaks.com/topic/234153-is-it-possible-to-echo-a-query/ Share on other sites More sharing options...
Zane Posted April 19, 2011 Share Posted April 19, 2011 If you make it a string first then yeah. Otherwise, with your current code... no. example $sql = "SELECT * FROM table WHERE memberID = ".$User['memberID']; $query = mysql_query($sql); echo $sql; Quote Link to comment https://forums.phpfreaks.com/topic/234153-is-it-possible-to-echo-a-query/#findComment-1203488 Share on other sites More sharing options...
fife Posted April 19, 2011 Author Share Posted April 19, 2011 cool ok thank you Quote Link to comment https://forums.phpfreaks.com/topic/234153-is-it-possible-to-echo-a-query/#findComment-1203499 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.