dudejma Posted August 7, 2011 Share Posted August 7, 2011 This isn't a problem I have right now, it's just something that I've been wondering for a while. What does it mean when a query doesn't echo. Like for instance, if you have a SELECT * FROM blah WHERE blah = 'blah' and you say echo that, why does it not echo it sometimes? Quote Link to comment https://forums.phpfreaks.com/topic/244080-why-wont-it-echo/ Share on other sites More sharing options...
PFMaBiSmAd Posted August 7, 2011 Share Posted August 7, 2011 why does it not echo it sometimes? Some possible reasons - 1) Your code contains a fatal php parse error or a fatal runtime error and your code is not being executed. 2) The code where your echo statement is at is not being executed (it's inside of a conditional statement that evaluates as false.) 3) The code where your echo statement is at is inside of a HTML tag or inside of a HTML form element and the echoed output only appears in the 'view source' of the page in your browser. Quote Link to comment https://forums.phpfreaks.com/topic/244080-why-wont-it-echo/#findComment-1253546 Share on other sites More sharing options...
dudejma Posted August 7, 2011 Author Share Posted August 7, 2011 Ahh, okay. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/244080-why-wont-it-echo/#findComment-1253548 Share on other sites More sharing options...
PFMaBiSmAd Posted August 7, 2011 Share Posted August 7, 2011 4) You have output buffering on (either in your script or in your php.ini) and you are redirecting to a different page (any output your script creates is discarded when the redirect occures.) Quote Link to comment https://forums.phpfreaks.com/topic/244080-why-wont-it-echo/#findComment-1253550 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.