Mysql Problems/Array?

 
 
<?php
if(session_id() != True) { die("No Direct File Viewing"); }
if( SESSION['ADMIN'] == '1') {
 
$query = "SELECT ip,browser FROM CJ_UsersOnline";
$result = mysql_query ($query)
or die ("Query failed");
echo "<table width=406 cellspacing=0 cellpadding=0 border=1 bordercolor=#FFFFFF>";
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
foreach($line as $vark) {
$ip = $line['ip'];
$browser = $line['browser'];
?>
<tr><td onmouseover="this.borderColor='#000000'" onmouseout="this.borderColor='#FFFFFF'"><p><?php echo $ip; ?>:<?php echo $browser; ?></td></tr>
<?php
}
}
echo "</table>";
} else { Echo "You need to be logged in as admin"; }
?>
 

ive edited an Online users script to add there browser and ip

and that code should repeat the results once but it does it twice :frowning: help plz