dev-ria Posted September 28, 2012 Share Posted September 28, 2012 hello, i am using while loop to retrieve data and when it runs it cuts off at end of loop and does not display footer. when i remove the while from while(xx){} the footer shows up fine. I double checked html for tags or divs not closed properly. please view code here http://semesterold.com/code.html Quote Link to comment https://forums.phpfreaks.com/topic/268888-while-loop-makes-footer-disappear/ Share on other sites More sharing options...
ManiacDan Posted September 28, 2012 Share Posted September 28, 2012 Take out the "or die". It's causing your page to...die. Quote Link to comment https://forums.phpfreaks.com/topic/268888-while-loop-makes-footer-disappear/#findComment-1381604 Share on other sites More sharing options...
dev-ria Posted September 28, 2012 Author Share Posted September 28, 2012 thanks that worked!!!! i also figured out that using break; also fixed my issue. Quote Link to comment https://forums.phpfreaks.com/topic/268888-while-loop-makes-footer-disappear/#findComment-1381611 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.