| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Database |
JDatabase |
loadResult |
loadResult() |
Never | Work in Progress |
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.
mixed loadResult ()
Example
$dbo =& JFactory::getDBO(); $query = "SELECT name, bid, clickurl FROM #__banner"; $dbo->setQuery( $query ); $row =& $dbo->loadResult(); print_r( $row );
might produce:
Result
OSM 1