API17:JDatabase::getQuery
From Joomla! Documentation
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.
JDatabase::getQuery
Description
Get the current or query, or new object.
Description:JDatabase::getQuery [Edit Descripton]
Synopsis
public JDatabase::getQuery ($new=false)
| Parameter | Type | Default | Description |
|---|---|---|---|
| $new | boolean | false | False to return the last query set by setQuery, True to return a new object. |
Returns
string The current value of the internal SQL variable
Defined in
libraries/joomla/database/database.php (line 602)
- see source code in BitBucket
Referenced by
See also
Examples
<CodeExamplesForm />
