View file waplend/let/last.php

File size: 405B
<? 

$newl = mysql_query("select * from `let` where `user` LIKE '".$_SESSION['login']."' and `type` LIKE 'in' and `read` LIKE 'no';");
$countnew = mysql_num_rows($newl);
if ($countnew>0)
{$newlet="|<font color='red'>$countnew</font>";}
$messages = mysql_query("select * from `let` where user='$_SESSION[login]' and type='in' ;");
$count = mysql_num_rows($messages);
    echo "$count$newlet";

?>