The Voting Game http://www.danzen.com/yesumno Short Games */ if (isset($_GET['t']) && $_GET['t'] == "friend") { require_once('../all/all.php'); $query = "SELECT * FROM links WHERE status=1"; $result = mysql_query($query,$db); $total = mysql_num_rows($result); $rand = rand(1,$total); $tally = 0; if ($result) { while ($myrow = mysql_fetch_row($result)) { $tally++; if ($tally == $rand) { $link=$myrow[1]; header("Location: $link"); exit; } } } } $xml_file = 'zendeck.xml'; $xml = join(file($xml_file)); $p = xml_parser_create(); xml_parse_into_struct ($p, $xml, $values, $index); $urls = array(); for ($i=0; $i