Просмотр файла file/letters/last.php
<? Error_Reporting(E_ALL & ~E_NOTICE); Error_Reporting (ERROR | WARNING); $newl = mysql_query("select * from `letters` 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 `letters` where user='$_SESSION[login]' and type='in' ;"); $count = mysql_num_rows($messages); echo "$count$newlet"; ?>