src/Database/Drivers/MysqlDriver.php
public function getColmuns($table)
    {
        $table = self::table($table);
        $columns = [];
        //
        $data = Database::read("select COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '".Config::get('database.database')."' AND TABLE_NAME = '$table';");
        //
        foreach ($data as $key => $value) {
            $columns[] = $value['COLUMN_NAME'];
        }
        //
        return $columns;
    }
public function getColmuns($table)
    {
        $table = self::table($table);
        $columns = [];
        //
        $data = Database::read("select COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '".Config::get('database.database')."' AND TABLE_NAME = '$table';");
        //
        foreach ($data as $key => $value) {
            $columns[] = $value['COLUMN_NAME'];
        }
        //
        return $columns;
    }
public function getColmuns ( $ table ) { $ table = self :: table ( $ table ) ; $ columns = [ ] ; // $ data = Database :: read ( "select COLUMN_NAME FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '" . Config :: get ( 'database.database' ) . "' AND TABLE_NAME = '$table';" ) ; // foreach ( $ data as $ key => $ value ) { $ columns [ ] = $ value [ 'COLUMN_NAME' ] ; } // return $ columns ; }
Get columns of data table.
Get columns of data table .