Пример #1
0
<?php

include "inc/inf/player.php";
print "Друзья:&nbsp;";
$S = mysql_query("SELECT * FROM `friends` WHERE `user`='{$info['user']}'");
while ($DAT = mysql_fetch_array($S)) {
    $friend = $DAT['friend'];
    show_player_f($friend, $img_server);
}
echo "<br><BR>";
print "В друзьях у:&nbsp;";
$S1 = mysql_query("SELECT * FROM `friends` WHERE `friend`='{$info['user']}'");
while ($DAT1 = mysql_fetch_array($S1)) {
    $friend1 = $DAT1['user'];
    show_player_f($friend1, $img_server);
}
echo "</TD>\n\n</TR>\n\n</TABLE>";
Пример #2
0
            echo "<td>&nbsp;</td>";
        }
        if ($participant = mysql_fetch_array($participants)) {
            echo "<td align=center>\n" . date("H:i ", $offer[time] - 600) . "\n</td>";
            echo "<td align=left>";
            show_player_f($participant[user]);
            while (($participant = mysql_fetch_array($participants)) && !$participant[side]) {
                echo ", <b>{$participant['user']}</b>";
            }
        } else {
            continue;
        }
        $participants = mysql_query("select participants.*, players.user,players.level,players.rank,players.tribe from participants, players\n         where players.id=participants.id\n           and participants.`time`={$offer['time']}\n           and participants.side=1\n         order by id");
        if ($participant = mysql_fetch_array($participants)) {
            unset($op_inf);
            echo " <i>против</i> ";
            show_player_f($participant[user]);
            while ($participant = mysql_fetch_array($participants)) {
                echo ", <b>{$participant['user']}</b>";
            }
        }
        if (!empty($offer['timeout'])) {
            echo " <small>[ <b>", $offer[timeout] / 60, " мин.</b> ]</small>";
        }
        if (!empty($offer['comment'])) {
            echo " <small>[ <i><b>{$offer['comment']}</b></i> ]</small>";
        }
        echo "</td></tr>";
    }
}
print "</table></form>";