Skip to content

(PHP) (CodeIgniter) Get all column names and entries just knowing the table name

Notifications You must be signed in to change notification settings

vtisnado/simpleViews

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

simpleViews

Get all column names and data entries just with the table name.

The function get_table_columns() returns an array of column names. The only required parameter is the table name Also you can pass and array of desired column names if you know them already.

get_table_columns($table_name, $choosen_fields = [])

Get all entries with the function get_table_entries() the only required parameter is the table name Optional you can pass an array of desired column names and/or an array of filters. The filters should be in Code Igniter DB Query Builder Class format in the Codeigniter version.

get_table_entries($table_name, $choosen_fields = [], $filters = [])

You can choose between the traditional PHP (php/utils.php) or Codeigniter version (codeigniter/custom_model.php).

About

(PHP) (CodeIgniter) Get all column names and entries just knowing the table name

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages