<?php $hostname = "localhost"; /* Local */ $username = "************"; /* DB Kullanıcı Adım */ $password = "*************"; /* DB Şifrem */ $database = "*************"; /* DB Adım */ mysql_connect($hostname, $username, $password); mysql_select_db($database); $sorgu = "SELECT * FROM `mybb_threads` group by RAND() limit 4"; $sonuc = mysql_query($sorgu); while ($thread = mysql_fetch_array($sonuc)) { echo ' <img src="http://forum.curcuna.tk/images/outline/minioff.gif"> <font size="2" color="#F77409"> <a href="http://forum.curcuna.tk/showthread.php?tid='.$thread['tid'].'"> '.$thread['subject'].' </a></font><br> <font size="1" color="#F884C4"> Gönderen:</font> <font size="1" color="#a0c0ff"> '.$thread['username'].'</font> |<font size="1" color="#F884C4"> Okunma Sayısı:</font> <font size="1" color="#a0c0ff"> '.$thread['views'].' </font><br> '; } ?>