PHP Learning Bench
This site is helpful to all basic learners in php.
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();
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment