Seite 1 von 1

SQL Befehl Fehler bei MOD einbau!

Verfasst: 04.06.2008 17:52
von <Hoppel>
Moin,
ich baue gerade die User Online Time ein,
dazu soll cich den SQL befehl machen:

Code: Alles auswählen

*** I have considered the table prefix as "phpbb_". If your table prefix is different the replace accordingly.
		
ALTER TABLE phpbb_users ADD user_online_time INT( 11 ) UNSIGNED NOT NULL DEFAULT 0;

ALTER TABLE phpbb_users ADD user_online_timeformat TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT 0;
Aber wenn ich das im phpmyadmin mache kommt immer ne Fehlermeldung und zwar diese hier:

Code: Alles auswählen

SQL-Befehl:

* * * I have considered the TABLE prefix AS "phpbb_".If your TABLE prefix IS different the REPLACE accordingly.
ALTER TABLE phpbb_users ADD user_online_time INT( 11 ) UNSIGNED NOT NULL DEFAULT 0

MySQL meldet: Dokumentation
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '*** I have considered the table prefix as "phpbb_". If your table prefix is diff' at line 1 
Was mach ich den Falsch?

Danke im voraus.

Gruß euer <Hoppel>[/quote]

Verfasst: 04.06.2008 18:31
von nickvergessen
Lass halt mal den kommentar weg:

Code: Alles auswählen

ALTER TABLE phpbb_users ADD user_online_time INT( 11 ) UNSIGNED NOT NULL DEFAULT 0;
ALTER TABLE phpbb_users ADD user_online_timeformat TINYINT( 1 ) UNSIGNED NOT NULL DEFAULT 0;

Verfasst: 04.06.2008 20:44
von <Hoppel>
Aso Danke!