|
|
Home Developer Manual 11. API Reference [REVIEW] database->loadResult |
| [REVIEW] database->loadResult |
|
|
|
|
Last reviewed: Not reviewed database->loadResultReturns the first field of the first row returned from the most recent database query or false if the query failed. Syntaxmixed loadResult ( ) ExamplesExample: This function returns the title of the first category in the Joomla categories table. function getCategoryTitle() { global $database; $sql = 'SELECT title FROM #__categories'; $database->setQuery( $sql ); echo $database->loadResult(); } getCategoryTitle(); might produce: Latest Please report any errors on this page to the Developer Documentation Forum. |
|
| Last Updated ( Sunday, 24 December 2006 ) |
| < Prev | Next > |
|---|





