<?php
session_start();
include("bd.php");
$result = mysql_query("SELECT * FROM vopr ORDER BY date DESC",$db);
$comment = mysql_fetch_array($result);
if($_SESSION['datev']<$comment['date']){
$_SESSION['datev']=$comment['date'];
printf("<div class='commentBlocknew'>
<div class='name'>%s</div>
<div class='text'>%s</div>
<div class='text'>%s</div>
</div>",$comment['date'],$comment['nick'],$comment['msg']);
}
?> |