MCQs > IT & Programming > Joomla > Consider the code segment below. Then, from the options given, choose the case that would result in an integer.

$db =& JFactory::getDBO();
$query = "
SELECT count(*)
FROM ".$db->nameQuote('#__my_table').";
";
$db->setQuery($query);



Joomla MCQs

Consider the code segment below. Then, from the options given, choose the case that would result in an integer.

$db =& JFactory::getDBO();
$query = "
SELECT count(*)
FROM ".$db->nameQuote('#__my_table').";
";
$db->setQuery($query);



Answer

Correct Answer: $result = $db->loadResult()

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Joomla Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Joomla Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it