View file file/news/index.php
<?php Error_Reporting(E_ALL & ~E_NOTICE); Error_Reporting (ERROR | WARNING); $i=0; $messages = @mysql_query("select * from `news` where type='news' order by id desc ;"); $count = @mysql_num_rows($messages); echo "$count"; ?>