Thanks for the help here:
http://stackoverflow.com/questions/1744128/foreach-loops-stdclass-objects
I set up a foreach loop, but the problem is that sometimes the result is:
Warning: Invalid argument supplied for foreach() in /home/MYACCOUNT/public_html/the script.php on line 81
I think that's when there is nothing to fill the foreach loop but got scared that this was happening when there was indeed one entry.
My question is: what does a foreach loop do when there is only one entry?