db_list_columns From Online Manual

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: