API17

JDatabase::query: Difference between revisions

From Joomla! Documentation

Doxiki2 (talk | contribs)
Bulk upload by Doxiki2
 
m preparing for archive only
 
(6 intermediate revisions by 2 users not shown)
Line 2: Line 2:
=={{JVer|11.1}} JDatabase::query==
=={{JVer|11.1}} JDatabase::query==
===Description===
===Description===
Execute the query.  
Execute the SQL statement.  
 
 


{{Description:JDatabase::query}}
<span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>[[Description:JDatabase::query|Edit Descripton]]<nowiki>]</nowiki>
</span>
===Synopsis===
<source lang="php">
<source lang="php">
public JDatabase->query ()
public function query ()
</source>
</source>
===Returns===
{| class="wikitable"
mixed A database resource if successful, FALSE if not.
|-
===Defined in===
!Parameter
libraries/joomla/database/database.php
!Type
===Referenced by===
!Default
!Description
|-
|
|
|
|
|-
|}
* '''Returns''' mixed A database cursor resource on success, boolean false on failure.
* '''Defined''' on line 1248 of libraries/joomla/database/database.php
* '''Since''' {{JVer|11.1}}
===See also===
===See also===
<span class="editsection" style="font-size:76%;">
* {{JVer|11.1}} '''JDatabase::query source code''' on [[jplatform:database/database.php#cl-1240|BitBucket]]
<nowiki>[</nowiki>[[SeeAlso:JDatabase::query|Edit See Also]]<nowiki>]</nowiki>
* {{JVer|11.1}} Class [[API17:JDatabase|JDatabase]]
</span>
* {{JVer|11.1}} Subpackage [[API17:Subpackage_Database|Database]]
* [[JDatabase/11.1|JDatabase]]
* [[API17:JDatabase::query|Other versions of JDatabase::query]]
* [[JDatabase::query|Other versions of this method]]
 
{{SeeAlso:JDatabase::query}}
 
===Examples===
===User contributed notes===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
noresultsheader=\n
noresultsheader=\n
category=JDatabase::query
category=JDatabase::query
category=CodeExample
namespace=CodeExample
category=MethodExample
category=MethodExample
include=*
include=*
namespace=CodeExample
format= ,,,
format= ,,,
</dpl>
</dpl>
<noinclude>[[Category:JDatabase]][[Category:JDatabase::query]]</noinclude>
<noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude>

Latest revision as of 02:34, 25 March 2017

Joomla 11.1 JDatabase::query

Description

Execute the SQL statement.


public function query ()
Parameter Type Default Description
  • Returns mixed A database cursor resource on success, boolean false on failure.
  • Defined on line 1248 of libraries/joomla/database/database.php
  • Since Joomla 11.1

See also


User contributed notes

Code Examples