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

WinBinder Manual/db edit field

Edits a field attribute in a table.

Syntax

bool db_edit_field(string tablename, string field, string type)

Arguments

  • tablename is the name of the table that will be affected.
  • field is the name of field (column).
  • type is the new attribute of the field.

Result

The function returns TRUE if successful or FALSE otherwise.

Example

// Edit the attribute of the field "telefon" in mytable

$result = db_edit_field("mytable", "telefon", "TEXT");

See also


Winbinder Projects