Answers for "codeigniter 4 how to get all table fields"

PHP
0

codeigniter table list

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

foreach ($tables as $table)
{
        echo $table;
}
Posted by: Guest on October-02-2020
0

how to get structure of table in codeigniter

$fields = $this->db->list_fields('table_name');
foreach ($fields as $field)
{
   echo $field;
}
Posted by: Guest on July-23-2021

Code answers related to "codeigniter 4 how to get all table fields"

Browse Popular Code Answers by Language