(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...") |
No edit summary |
||
Line 12: | Line 12: | ||
<noinclude> | <noinclude> | ||
[[Category:Database Package Functions | [[Category:Database Package Functions]]</noinclude> | ||
Revision as of 21:50, 8 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.