I do not know SQL code and wish for anyone to help. This is for WOWroster to synch with pnphphbb.. I will repost the index.php file and instructions for people who would like it afterwards.
Thanks in advance.
Code
echo 'Removing all members...<br>';
// now check for users
$sql = "DELETE FROM " . $table_prefix . "user_group WHERE group_id = ".$phpbb_defaultGroup;
if ($roster_conf['sqldebug']) {
echo "\n<!-- $sql -->\n";
}
$result = $db_phpbb->sql_query($sql) or die(mysql_error());
// Now remove all the custom groups
foreach( $phpbb_rankGroupMappings as $key => $value){
$sql = "DELETE FROM " . $table_prefix . "user_group WHERE group_id = ".$value;
$result_char = $wowdb->query($sql);
}
// now check for users
$sql = "DELETE FROM " . $table_prefix . "user_group WHERE group_id = ".$phpbb_defaultGroup;
if ($roster_conf['sqldebug']) {
echo "\n<!-- $sql -->\n";
}
$result = $db_phpbb->sql_query($sql) or die(mysql_error());
// Now remove all the custom groups
foreach( $phpbb_rankGroupMappings as $key => $value){
$sql = "DELETE FROM " . $table_prefix . "user_group WHERE group_id = ".$value;
$result_char = $wowdb->query($sql);
}
