Hi,
I'm using Joomla at the moment trying to create a component that will display an accordion with 10 catalogue items from a database.
The problem I'm having is I'm not quite sure how to create the accordion and connect it with the database so that each row will be displayed in it's own part of the accordion catalogue.
I have stored all my items in the database already. I'm not too sure how to display it when I start to create the accordion with jquery.
How would I fix this so that it displays everything in the database and not just greetings?
function getGreeting()
{
$db =& JFactory::getDBO();
$query = 'SELECT greeting FROM #__accordion';
$db->setQuery( $query );
$greeting = $db->loadResult();
return $greeting;
}
Any help would be appreciated!