(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...") |
m (refresh SMW properties) |
||
(One intermediate revision by one other user not shown) | |||
Line 10: | Line 10: | ||
|return=(array) an array containing the table's colums info. | |return=(array) an array containing the table's colums info. | ||
}} | }} | ||
<noinclude> | <noinclude> | ||
[[Category:Database Package Functions | [[Category:Database Package Functions]]</noinclude> | ||
Latest revision as of 16:45, 11 October 2012
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.