• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

sql befehl geht nicht

HTMLPro

Mitglied
hallo,
habe dieses tutorial gefunden:
http://www.html.de/tutorials/29839-login-system-fuer-anfaenger.html
aber immer wenn ich den sql befehl:
Code:
[COLOR=#0000bb]CREATE TABLE benutzerdaten [/COLOR][COLOR=#007700]( 
  [/COLOR][COLOR=#0000bb]Id Int[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]11[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]NOT NULL auto_increment[/COLOR][COLOR=#007700], 
  [/COLOR][COLOR=#0000bb]Nickname VarChar[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]50[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]NOT NULL [/COLOR][COLOR=#007700]default [/COLOR][COLOR=#dd0000]''[/COLOR][COLOR=#007700], 
  [/COLOR][COLOR=#0000bb]Kennwort VarChar[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]50[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]NOT NULL [/COLOR][COLOR=#007700]default [/COLOR][COLOR=#dd0000]''[/COLOR][COLOR=#007700], 
  [/COLOR][COLOR=#0000bb]Nachname VarChar[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]50[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]NOT NULL [/COLOR][COLOR=#007700]default [/COLOR][COLOR=#dd0000]''[/COLOR][COLOR=#007700], 
  [/COLOR][COLOR=#0000bb]Vorname VarChar[/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]50[/COLOR][COLOR=#007700]) [/COLOR][COLOR=#0000bb]NOT NULL [/COLOR][COLOR=#007700]default [/COLOR][COLOR=#dd0000]''[/COLOR][COLOR=#007700], 
  [/COLOR][COLOR=#0000bb]PRIMARY KEY [/COLOR][COLOR=#007700]([/COLOR][COLOR=#0000bb]Id[/COLOR][COLOR=#007700]) 
) [/COLOR]
eingebe steht da #1046 no database selected.
was muss ich machen?
lg htmlpro
 
Du koenntest dir auch mal PhpMyAdmin anschauen .... einfach mal googlen. Das wird dir fuer den Einstieg den Umgang mit Datenbanken und Tabellen sehr erleichtern ;)
 
Zurück
Oben