0)
{
if ($notajump==1)
{
$query2="select * from vidcomments where vid='$vid' and threadid='".$row["id"]."' and replyto='$thread' and time > $timestamp order by time limit 0,1";
}
else
{
$lev=$level-1;
$query2="select * from vidcomments where vid='$vid' and threadid='".$row["id"]."' and replyto='".$thread."' and time > ".$oldtimestamp[$level+1]." order by time limit 0,1";
}
//print $query2." $level ";
$result2 = mysql_query($query2);
$row2 = mysql_fetch_array($result2);
if ($row2["id"])
{
$notajump=1;
$oldthread[$level]=$thread;
$level++;
$timestamp=$row2["time"];
$oldtimestamp[$level]=$timestamp;
$thread = $row2["id"];
$oldreplyto[$level]=$thread;
$query3="select * from vidcomments where replyto='$thread' order by time limit 0,1";
$result3 = @mysql_query($query3);
$row3 = @mysql_fetch_array($result3);
?>
( ����������� ��� ����� )
$level
"; $result2 = mysql_query($query2); $row2 = mysql_fetch_array($result2); if ($row2["id"]) { $notajump=1; $oldthread[$level]=$thread; $level++; $timestamp=$row2["time"]; $oldtimestamp[$level]=$timestamp; $thread = $row2["id"]; $oldreplyto[$level]=$thread; $query3="select * from vidcomments where replyto='$thread' order by time limit 0,1"; $result3 = @mysql_query($query3); $row3 = @mysql_fetch_array($result3); ?>
"; include($html_dir."/footer.php"); ?>