Topic: Problem with adding a new Group
I receive the Error
Unable to add group
when i try to add a new group...
i have added 1 mod that could possiby change this and that is the Group Colored username mod. Where people in certain groups have different colored names.
if i edit an existing group the colored names work fine.
here is the query i am using
$db->query('INSERT INTO '.$db->prefix.'groups (g_title, g_user_title, g_read_board, g_post_replies, g_post_topics, g_edit_posts, g_delete_posts, g_delete_topics, g_set_title, g_search, g_search_users, g_edit_subjects_interval, g_post_flood, g_search_flood, g.color) VALUES(\''.$db->escape($title).'\', '.$user_title.', '.$read_board.', '.$post_replies.', '.$post_topics.', '.$edit_posts.', '.$delete_posts.', '.$delete_topics.', '.$set_title.', '.$search.', '.$search_users.', '.$edit_subjects_interval.', '.$post_flood.', '.$search_flood.')') or error('Unable to add group', __FILE__, __LINE__, $db->error());
Here is the code for the Color input box
<input type="text" name="group_color" size="9" maxlength="7" value="<?php echo $group['g_color'] ?>" tabindex="25" />
Is there an obvious mistake that i have missed anywhere?
thanks if you can help