refresh problem in online users list
<p>I have a problem with the online users list.
The code works fine, all the online users are displayed on the screen but when I click on refresh, the same user's email is displayed again and when I click on refresh for the second time the user's email is displayed three times and so on.</p>

<p>Here is my code:</p>

<pre><code>&lt;?php

require_once("db.php");

db_connect();

session_start();


$player_timeout = time() - 5 * 60;

$time = time();

if (isset($_SESSION['email'])) {

$login=mysql_query("insert into activePlayer(player_email,time_visited,status)   values('".$_SESSION['email']."','".$time."', 'true')");
</code></pre>

<p>}</p>

<pre><code>else

{echo "You are not logged in";}

$tmout = mysql_query("DELETE FROM activePlayer WHERE time_visited &lt; ".$player_timeout);

$online_member = mysql_query("SELECT player_email FROM activePlayer");

$row=mysql_num_rows($online_member);

$member_row=mysql_fetch_array($online_member);

echo "Welcome &amp;nbsp; '".$_SESSION['email']."'";

?&gt;

&lt;body&gt;

&lt;select &gt; &lt;?php  

 if ($row&lt;1)
      {
        echo "&amp;nbsp;";
      }
      else
      {?&gt; &lt;p&gt;&lt;p&gt;Online Players:&lt;option&gt;&lt;?php echo $member_row['player_email'];?&gt;  
     &lt;/option&gt;}
      &lt;?php for ($i=1;$i&lt;$row;$i++)

{
      $member_row=mysql_fetch_array($online_member);?&gt;
      &lt;p&gt;&lt;p&gt;Online Players:&lt;option&gt;&lt;?php echo $member_row['player_email']; }}?&gt;   
 &lt;/option&gt;&lt;/select&gt;
&lt;/body&gt;
</code></pre>

<p>please how can I solve this problem</p>
