What type should the database field "beschreibung" be to store long messages?

To store long messages in a database field, the field type should be set to TEXT or VARCHAR with a large character limit. TEXT fields are typically used for longer messages that exceed the character limit of VARCHAR. This allows for storing large amounts of text data without truncation.

// Example of creating a database table with a field "beschreibung" set to TEXT type
$sql = "CREATE TABLE messages (
    id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY,
    beschreibung TEXT
)";