What is the best way to accomplish this?
I have a PHP function that outputs a MySQL while loop. It works fine, displays every row as expected. However, I need to not echo the results, but rather put them as a variable to work with preexisting code. Changing that obviously limits it to only one result currently.
I assume it's got to be inserted as an array of sorts. Thinking about looping a loop is making my head hurt haha.
Any help would be much appreciated.