## db_rename_field

bool db_rename_field (string tablename, string currentname, string newname)

Renames a field in a table.

Arguments

tablename is the name of the table that will be affected.
currentname is the current name of the field (column).
newname is the name that will be given to the field.
Result

The function returns TRUE if successful or FALSE otherwise.

Example

`// Edit the name of the field "telefon" in mytable $result = db_rename_field("mytable", "telefon", "Tel./Fax");`

See also

Database functions
Database support