Verjaardag mod sql fout :S
Geplaatst: 17 dec 2003, 23:18
ik krijg deze fout bij het uploaden de gegeven query in de verjaardaghack:
dit is de query btw:Fout
SQL-query :
ALTER TABLE users ADD user_birthday INT DEFAULT '999999' NOT NULL ALTER TABLE users ADD user_next_birthday_greeting INT DEFAULT '0' NOT NULL INSERT INTO CONFIG( config_name, config_value )
VALUES (
"birthday_required", "0"
)
INSERT INTO config( config_name, config_value )
VALUES (
'birthday_greeting', '1'
)
INSERT INTO config( config_name, config_value )
VALUES (
'max_user_age', '100'
)
INSERT INTO config( config_name, config_value )
VALUES (
'min_user_age', '5'
)
INSERT INTO config( config_name, config_value )
VALUES (
'birthday_check_day', '7'
)
MySQL retourneerde:
You have an error in your SQL syntax near 'ALTER TABLE users ADD user_next_birthday_greeting INT DEFAULT '0' NOT NULL I' at line 1
Terug
Code: Selecteer alles
ALTER TABLE users ADD user_birthday INT DEFAULT '999999' not null
ALTER TABLE users ADD user_next_birthday_greeting INT DEFAULT '0' not null
INSERT INTO CONFIG (config_name, config_value) VALUES ("birthday_required", "0")
INSERT INTO config (config_name, config_value) VALUES ('birthday_greeting', '1')
INSERT INTO config (config_name, config_value) VALUES ('max_user_age', '100')
INSERT INTO config (config_name, config_value) VALUES ('min_user_age', '5')
INSERT INTO config (config_name, config_value) VALUES ('birthday_check_day', '7')