fife Posted April 19, 2011 Share Posted April 19, 2011 like so... echo" $query = mysql_query("SELECT * FROM table WHERE memberID = ".$User['memberID'].""); "; ?????????????? 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; 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 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
Archived
This topic is now archived and is closed to further replies.