fuel/fuel/core/classes/db.php
public static function list_columns($table = null, $like = null, $db = null)
	{
		return \Database_Connection::instance($db)->list_columns($table, $like);
	}
public static function list_columns($table = null, $like = null, $db = null)
	{
		return \Database_Connection::instance($db)->list_columns($table, $like);
	}
public static function list_columns ( $ table = null , $ like = null , $ db = null ) { return \ Database_Connection :: instance ( $ db ) -> list_columns ( $ table , $ like ) ; }
Lists all of the columns in a table. Optionally, a LIKE string can be
used to search for specific fields.

// Get all columns from the "users" table
$columns = DB::list_columns('users');

// Get all name-related columns
$columns = DB::list_columns('users', '%name%');

@param   string  table to get columns from
@param   string  column to search for
@param   string  the database connection to use
@return  array
Lists all of the columns in a table . Optionally a LIKE string can be used to search for specific fields .