thời tiết việt nam giá vàng thời tiết hồ chí minh thời tiết cam ranh thời tiết hà nội thời tiết đà nẵng iplocation domain authority whois bảng giá tên miền trúc vy trúc vy blog site cost top site site cost bit.do bit.do bit.do bit.do bit.ly gg.gg

CodeIgniter User Guide Version 2.2.6


Table Data

These functions let you fetch table information.

$this->db->list_tables();

Returns an array containing the names of all the tables in the database you are currently connected to. Example:

$tables = $this->db->list_tables();

foreach ($tables as $table)
{
   echo $table;
}

$this->db->table_exists();

Sometimes it's helpful to know whether a particular table exists before running an operation on it. Returns a boolean TRUE/FALSE. Usage example:

if ($this->db->table_exists('table_name'))
{
   // some code...
}

Note: Replace table_name with the name of the table you are looking for.