include_once('connect.php');
$query=mysql_query("SELECT * FROM news ORDER BY id_news DESC LIMIT 2");
while($row=mysql_fetch_assoc($query))
{
$news=$row['news'];
$news=substr($news, 0, 50);
if(strlen($news)==50){
$a='
...';
}
echo '
'.$row['news_date'].'
'.$news.$a.'
';
$a='';
}
?>