RayChill Posted February 1, 2007 Share Posted February 1, 2007 This error appears when registration is set to user or admin after the new member clicks submit to join the forum. Error inserting user group, group count DEBUG MODE SQL Error : 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 ' 2235, 0)' at line 2 INSERT INTO phpbb_user_group (group_id, user_id, user_pending) VALUES (, 2235, 0) Line : 1080 File : usercp_register.php This is the line listed: message_die(GENERAL_ERROR, 'Error inserting user group, group count', '', __LINE__, __FILE__, $sql); Link to comment https://forums.phpfreaks.com/topic/36653-sql-error-when-registering/ Share on other sites More sharing options...
Silverado_NL Posted February 2, 2007 Share Posted February 2, 2007 INSERT INTO phpbb_user_group (group_id, user_id, user_pending) VALUES (, 2235, 0) i think the line needs to be INSERT INTO phpbb_user_group (group_id, user_id, user_pending) VALUES ("", 2235, 0) because in the Values clause the 1st value is not set it cant disappear. the query needs to see it has nog value Link to comment https://forums.phpfreaks.com/topic/36653-sql-error-when-registering/#findComment-175445 Share on other sites More sharing options...
corbin Posted February 3, 2007 Share Posted February 3, 2007 If the field is auto incrementing, you do not need to insert anything for it at all if I remember... At least which ever version of MSSQL I last used that wasn't needed lol. Link to comment https://forums.phpfreaks.com/topic/36653-sql-error-when-registering/#findComment-176255 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.