dedlfix: Ein bisschen ENUM-Bastelei

Beitrag lesen

echo $begrüßung;

» » 3. Der Fehler beim Insert ist immer noch vorhanden
» Wieso? Arbeitet doch so wie es dokumentiert ist.
Bitte um den Link, damit wir vom Gleichen reden :-)

http://dev.mysql.com/doc/refman/5.1/en/enum.html

If you store a number into an ENUM column, the number is treated as the index into the possible values, and the value stored is the enumeration member with that index. [...] If the numeric value is quoted, it is still interpreted as an index if there is no matching string in the list of enumeration values. For these reasons, it is not advisable to define an ENUM  column with enumeration values that look like numbers, because this can easily become confusing.

echo "$verabschiedung $name";