Like this:
<?php
$userlist = file("users.inc.php");
for ($i=1; $i<count($userlist); $i++) {
list($n,$p,$a,$e,$g,$s,$m) = explode(':',chop($userlist[$i]));
echo "$m"; // this will display in every loop
}
?>
By adding an if statement, you'll narrow down to the logged in person:
<?php
$userlist = file("users.inc.php");
for ($i=1; $i<count($userlist); $i++) {
list($n,$p,$a,$e,$g,$s,$m) = explode(':',chop($userlist[$i]));
if ($n == $theUserName) {
echo "$m";
}
}
?>
change $theUserName to the variable where you have the logged in person's username. That if statement will cause that person's $m to show only.
Diego