<?php
// Error reporting:
error_reporting(E_ALL^E_NOTICE);
include "connect.php";
include "comment.class.php";
if (!isset($_GET['oyna'])) {
$sorgum = mysql_query('SELECT id from video ORDER BY RAND() LIMIT 1');
while($rastgele = mysql_fetch_array($sorgum, MYSQL_ASSOC)) {
$vid = array();
$vid[0]=$rastgele['id'];
$yorum_sql = "select * from yorumlar where video_id = '$vid[0]'";
while($row = mysql_fetch_assoc($yorum_sql))
{
$comments[$vid[0]][] = $row;
}
}
?>b,yle olmasi gerekiyor ama tablo ve sütun isimlerine dikkat et.