fetch_array($query, __LINE__, __FILE__); // get the list of other games for the list $query = " SELECT G.* , P1.p_username AS black_username , P2.p_username AS white_username FROM ".T_GAME." AS G LEFT JOIN ".T_PLAYER." AS P1 ON P1.p_id = G.g_black_player_id LEFT JOIN ".T_PLAYER." AS P2 ON P2.p_id = G.g_white_player_id WHERE ( g_white_player_id != '{$_SESSION['player_id']}' AND g_black_player_id != '{$_SESSION['player_id']}' ) AND ( g_status = 'Black' OR g_status = 'White' ) ORDER BY g_num_moves "; $other_games = $mysql->fetch_array($query, __LINE__, __FILE__); // get the list of finished games for the list $query = " SELECT G.* , P1.p_username AS black_username , P2.p_username AS white_username FROM ".T_GAME." AS G LEFT JOIN ".T_PLAYER." AS P1 ON P1.p_id = G.g_black_player_id LEFT JOIN ".T_PLAYER." AS P2 ON P2.p_id = G.g_white_player_id WHERE ( g_status != 'Black' AND g_status != 'White' ) ORDER BY g_last_move DESC "; $finished_games = $mysql->fetch_array($query, __LINE__, __FILE__); // start the page echo "\n"; ?> iShudan : Main Menu

iShudan :: main menu

Hello, . Please select one of your games from the list below.

create game settings log out
"; echo $html; ++$i; } } else { ?>
your games
game id black player white player board size moves turn
{$game['g_id']} {$game['black_username']} {$game['white_username']} {$game['g_board_size']} {$game['g_num_moves']} {$game['g_status']}
You have no games listed
"; echo $html; ++$i; } } else { ?>
other games
game id black player white player board size moves turn
{$game['g_id']} {$game['black_username']} {$game['white_username']} {$game['g_board_size']} {$game['g_num_moves']} {$game['g_status']}
There are no other games listed
"; echo $html; ++$i; } } else { ?>
finished games
game id black player white player board size moves turn
{$game['g_id']} {$game['black_username']} {$game['white_username']} {$game['g_board_size']} {$game['g_num_moves']} {$game['g_status']}
There are no finished games listed