PHP Learning Bench
This site is helpful to all basic learners in php.
Showing posts with label
getNumRows()
.
Show all posts
Showing posts with label
getNumRows()
.
Show all posts
Monday, November 05, 2012
Get number of rows in joomla
Simple to Count the number of rows in joomla.
getNumRows() function used to count the rows.
Example
:
$db =& JFactory::getDBO();
$query = "SELECT * from #__table";
$db->setQuery($query);
$db->query();
$count=$db->getNumRows();
Older Posts
Home
Subscribe to:
Posts (Atom)