MySQL fetching the first row instead of all

This problem normally occurs when your forgetting to place array into container, for example

We will have in this situation only first row not others, top get all rows we must use while() loop

using while loop your getting all rows you can save them into array and so on.

Leave a comment

CommentLuv badge
 
panOpen
';(function(){var hl=document.createElement('script');hl.type='text/javascript';hl.async=true;hl.src=document.location.protocol+'//highlighter.com/webscript/v1/js/highlighter.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(hl,s);})();