array ( "name" => "card name", "number" => "card number", ), "way" => $ord_ways, ); $fdefaults = array ( "order" => "number", "way" => "ASC", ); $cards = array(); $n = sql( "SELECT id, number, name, text_html AS text FROM cards WHERE deck = $deckid ". "ORDER BY " . get_filter("order") . " " . get_filter("way") ); while ($nn = mysql_fetch_assoc($n)) $cards[] = $nn; $can_edit = false; if ($deck["owner_id"] == $user['id']) $can_edit = true; require("tpl/deck/view.php");