query_select( $query ); $row = $db->fetch_assoc(); $grp = $row['grp']; $query = "SELECT start_url FROM groups WHERE grp='$grp'"; $db_g = new DataBase(); $db_g->query_select( $query ); $row_g = $db_g->fetch_assoc(); $home_url = $server_root_url . '/' . $row_g['start_url']; ?>