The Profile form lets users display or modify personal profile information. The Profile function shows how information stored in the database can be represented in user interface controls.
The table user_profile stores profile information and contains a column of type LongVarBinary to hold binary large objects (BLOBs). This application uses a photograph as a BLOB.
User names are stored as a Unicode data type. If you install a locale on your Windows machine, foreign characters can be displayed.
Profile information is displayed in the result panel profilePanel.
The Profile form contains two groups of buttons that perform the following actions:
Clears all entries in the form and enables the Add button.
Changes the Email Address control from a text field into a combo box list field. The list in the combo box reflects all entries stored in the user_profile table.
Executes an INSERT using values from the form as parameters to the query.
Executes a DELETE using the value from the Email Address combo box to identify the row in the database to be deleted.
Executes an UPDATE using the values from the form as parameters to the query.