1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
if (!isset($_SESSION['user']) && empty($_SESSION['user']) = array();
$temp = array();
while ($row = mysql_fetch_array($result)){
if ( $b == 3) { $b = "1"; }
if ($b == 1){ echo "<tr bgcolor=$color1><td><font color='#000080'><center> $i </center></td><td><font color='#000080'>"; }
if ($b == 2){ echo "<tr bgcolor=$color2><td><font color='#000080'><center> $i </center></td><td><font color='#000080'>"; }
echo " *$row[1] </td><td><font color='#000080'>
*$row[0] </td><td><font color='#000080'>
*$row[2]";
if ( !in_array($row[1],$_SESSION['user']) ) echo '<BGSOUND SRC="stats/Sons/Tir.wav">';
echo "</td></tr>";
$temp[] = $row[1];
$i++;
$b++;
echo "</form></center></td></tr>";
}
$_SESSION['user'] = $temp; |