ginerjm Posted May 30, 2022 Share Posted May 30, 2022 (edited) (ignore) Edited May 30, 2022 by ginerjm Quote Link to comment https://forums.phpfreaks.com/topic/314866-using-foreach-to-loop-over-resultset-from-fetch_assoc/page/2/#findComment-1596871 Share on other sites More sharing options...
Solution Barand Posted May 30, 2022 Solution Share Posted May 30, 2022 1 hour ago, webdeveloper123 said: So i'm a bit confused. Can you help please? I showed you exactly how to do it in your previous topic. How do you still manage to keep screwing it up? Quote Link to comment https://forums.phpfreaks.com/topic/314866-using-foreach-to-loop-over-resultset-from-fetch_assoc/page/2/#findComment-1596872 Share on other sites More sharing options...
webdeveloper123 Posted May 31, 2022 Author Share Posted May 31, 2022 (edited) haha yes Barand! It's working. Honestly, I'm not even joking I was coming downstairs today thinking I am going to use $invoiceOutput in the condition for the do...while loop! With regards to the code you wrote. I Know you went out of your way to do that & I appreciate it it's just that I was just trying to extract the php because I had something particular in mind for the css. And echoing large parts of HTML in variables etc I'm not too familiar with so I wanted to do it my way Thank you! Edited May 31, 2022 by webdeveloper123 Quote Link to comment https://forums.phpfreaks.com/topic/314866-using-foreach-to-loop-over-resultset-from-fetch_assoc/page/2/#findComment-1596880 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.