Personal tools
From wiki.swiftlytilting.com
Jump to: navigation, search

WinBinder Manual/db list table fields

Returns all field names or field attributes from a table.

Syntax

array db_list_table_fields(string tablename [, type])

Arguments

  • tablename is the name of the table to be examined.
  • type is the type of data to be returned. FALSE (the default) returns the field names, while TRUE (optional) returns the field attributes.

Result

Returns an array with the field names or field attributes, or NULL if no field is found.

Example

// List table fields

$result = db_list_table_fields("mytable"); 
if ($result !== NULL) {
    echo "$result holds the fieldnames"; 
}

See also


Winbinder Projects