Die folgende PHP-Funktion produziert eine Fehlermeldung, die ich nicht nachvollziehen kann - erbitte Hinweis:
1  | function db_tables()  | 
2  | {
 | 
3  | $sql="create table personal(id mediumint not null auto_increment, rfidnr char(12), name char(25),  | 
4  | vname char(25), persnr char(12), abtnr char(12), prefsnr char(12), aktiv char(1))";  | 
5  | $ok=mysql_query($sql);  | 
6  |     if (!$ok){echo mysql_error();}
 | 
7  | }  | 
1  | Incorrect table definition; there can be only one auto column and it must be defined as a key  | 
Laut Referenz https://dev.mysql.com/doc/refman/5.1/de/example-auto-increment.html dürfte es das Problem nicht geben, oder?