You rock. I figured my example wouldn't be exactly cutting edge in terms of efficiency, at least your criticism of it indicates I'm slowly getting better. To boot too, you gave me exactly what I needed, the more correct way to go about things. I have some homework to do, you've introduced a few characters I'm not familiar with, but I will soon.
Now, about that picture. It's not super fancy, but maybe it can give you an idea of what I'm trying to do. The one on the left is basically what I'm picturing in my head as a layout page, the one on the right is kind of what it looks like when the query pulls information and plops in its place.
So, items in the left in quotes, are where I'd like to stick a variable that corresponds to the correct value in the search function, with it sitting in the HTML, it could then be subjected to the CSS formatting.
Does this help? I'm just trying to take raw data from a search, and make it pretty and presentable.
In the meantime, I will educate myself on your revised version of the query.