chronicoles Posted May 2, 2007 Share Posted May 2, 2007 This is regarding my phpBB forum and the Global Announcement modification... This is what I was given in the instructions I downloaded. ALTER TABLE phpbb_forums ADD auth_globalannounce TINYINT (2) DEFAULT "3" NOT NULL AFTER auth_announce; ALTER TABLE phpbb_auth_access ADD auth_globalannounce TINYINT (1) not null AFTER auth_announce; I made it go through this generator, so I copied and pasted the code into a blank file and saved it as db_update.php but when I entered it into the link, it gave me this: Parse error: parse error, unexpected T_LNUMBER in /home/katya03/public_html/forum/db_update.php on line 57 And this is what it said on line 57... $sql[] = "ALTER TABLE " . $table_prefix . "forums ADD auth_globalannounce TINYINT (2) DEFAULT "3" not null AFTER auth_announce"; Help please! Quote Link to comment https://forums.phpfreaks.com/topic/49614-whats-wrong-with-this-code/ Share on other sites More sharing options...
bubblegum.anarchy Posted May 2, 2007 Share Posted May 2, 2007 change DEFAULT "3" to DEFAULT '3' Quote Link to comment https://forums.phpfreaks.com/topic/49614-whats-wrong-with-this-code/#findComment-243272 Share on other sites More sharing options...
chronicoles Posted May 5, 2007 Author Share Posted May 5, 2007 Thanks! Sorry for the late reply but I tried that and it worked. But I have another problem... ALTER TABLE `phpbb2_users` ADD `user_reg_ip` TEXT NULL, ADD `user_reg_host` TEXT NULL; I tried to run it but it gave me an error message instead. And I even tried to change the ` to '. Help again, please. D: Quote Link to comment https://forums.phpfreaks.com/topic/49614-whats-wrong-with-this-code/#findComment-246005 Share on other sites More sharing options...
bubblegum.anarchy Posted May 5, 2007 Share Posted May 5, 2007 There does not appear to be anything syntatically wrong with the ALTER query provided - what was the error message? Quote Link to comment https://forums.phpfreaks.com/topic/49614-whats-wrong-with-this-code/#findComment-246034 Share on other sites More sharing options...
chronicoles Posted May 5, 2007 Author Share Posted May 5, 2007 This is what I got. ALTER TABLE 'phpbb2_users' ADD 'user_reg_ip' TEXT NULL ADD 'user_reg_host' TEXT NULL +++ Error: 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 ''phpbb2_users' ADD 'user_reg_ip' TEXT NULL ADD 'user_reg_host' TEXT NULL' at line 1 Quote Link to comment https://forums.phpfreaks.com/topic/49614-whats-wrong-with-this-code/#findComment-246068 Share on other sites More sharing options...
fenway Posted May 5, 2007 Share Posted May 5, 2007 I don't see the comma in that error. Quote Link to comment https://forums.phpfreaks.com/topic/49614-whats-wrong-with-this-code/#findComment-246104 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.