API16

JDatabaseMySQL/getTableList: Difference between revisions

From Joomla! Documentation

m clean up
m preparing for archive only
 
Line 31: Line 31:


===Examples===
===Examples===
<CodeExamplesForm />
=== Code Examples ===
<dpl>
<dpl>
  noresultsheader=\n
  noresultsheader=\n
  category=getTableList
  category=getTableList
  category=JDatabaseMySQL
  category=JDatabaseMySQL
  category=CodeExample
  namespace=CodeExample
  category=MethodExample
  category=MethodExample
  include=*
  include=*

Latest revision as of 01:27, 25 March 2017

Description

Description


<! removed transcluded page call, red link never existed >

Syntax

getTableList()


Returns

array A list of all the tables in the database

Defined in

libraries/joomla/database/database/mysql.php

Importing

jimport( 'joomla.database.database.mysql' );

Source Body

public function getTableList()
{
        $this->setQuery('SHOW TABLES');
        return $this->loadResultArray();
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples