I have a table called "images" and it has two columns called "id" and "thumb". I want to query all "thumb" values from id "15". Let's say id "15" contains three rows of "thumb" information. This is what I have
$db = JFactory::getDbo();
$query = "SELECT * FROM images WHERE id = '15' ORDER BY sort_order DESC";
$db->setQuery($query);
$results = $db->loadObjectList();
So now I have $results but when I try to echo them in PHP it doesn't show anything. It says $results is an "array" but I want to display the three values. I would think "echo $results[1];" would she me some data but it didn't show anything. Is there something I am missing here? I know there's something in $results but I am unsure how to display the data.