function select_type($type, $fields = array()) { $type = select_entry("type", array("id", "name"), $type, $fields); return $type; }
function select_turn($turn, $fields = array()) { $turn = select_entry("turn", array("id", "player", "room", "weapon", "suspect", "witness", "evidence", "game"), $turn, $fields); return $turn; }
function select_game($game, $fields = array()) { $game = select_entry("game", array("date", "id", "my_player"), $game, $fields); return $game; }
function select_card($card, $fields = array()) { $card = select_entry("card", array("id", "name", "type"), $card, $fields); return $card; }