I am new in joomla.In my module i have to give select category option. I tried to get category name from back-end by following code but it doesn't work.Code..
$backId=$params->get('mycategory');
$db->setQuery('SELECT cat.title FROM #__categories cat RIGHT JOIN #__content cont ON cat.id = cont.catid WHERE cont.id='.$backId);
$category_title = $db->loadResult();
if ($category_title)
{
echo $category_title;
}
how can i get the category name that i selected.Thanks...
Hope this may be work..