## db_edit_field

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

Edits a field attribute in a table.

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

Database functions
Database support