references:joomla.framework:database:jdatabase-loadresultTable of Contents
loadResult
This method loads the first field of the first row returned by the query. The return type depends on the value stored in the database. Syntaxmixed loadResult () ExamplesExample $dbo =& JFactory::getDBO(); $query = "SELECT name, bid, clickurl FROM #__banner"; $dbo->setQuery( $query ); $row =& $dbo->loadResult(); print_r( $row ); might produce: Result OSM 1
Discussion |


