db_list_columns From Online Manual

Revision as of 16:54, 7 October 2012 by Emanuele (talk | contribs) (Created page with "{{smcfunc |function=db_list_columns |usage=$smcFunc['db_list_columns'] (table_name, detail, parameters) |description=This function returns the current columns in a table in a mul...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Usage:

$smcFunc['db_list_columns'] (table_name, detail, parameters)


Description: This function returns the current columns in a table in a multi-dimensional array.

Parameters:

  • table_name (string) the name of an existing table
  • detail (boolean) if true a formated array will be returned of the column info, otherwise the plain straight column info is returned. The detailed array is 'name', 'null', 'default', 'type', 'size', 'auto'.
  • parameters not used

Return: (array) an array containing the table's colums info.



Advertisement: