zero_ZX Posted February 28, 2012 Share Posted February 28, 2012 Hi, I was wondering if any one can help me out with this little issue. I select some data, and put it on a while loop, so something like while($row = mysql_fetch_array($result)){ body } but at the very last element in the array I'd like to something a little different than else. So, i have 4 elements. For the first 3 I'd like to print element1, element2, element 3, element4 Notice the missing comma at element4 Quote Link to comment https://forums.phpfreaks.com/topic/257941-while-fetching-mysql/ Share on other sites More sharing options...
litebearer Posted February 28, 2012 Share Posted February 28, 2012 Check this thread... http://www.phpfreaks.com/forums/index.php?topic=322142.msg1517739#msg1517739 Quote Link to comment https://forums.phpfreaks.com/topic/257941-while-fetching-mysql/#findComment-1322104 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.