sql("SELECT * FROM galeri WHERE galeriID= '".$_GET['g']."' AND tipi='2' ORDER BY baslik ASC "); $row = mysql_fetch_array($db); $v = explode(",",$row['media']); $db2 = new db(); $db2 = $db2->sql("SELECT * FROM (SELECT * FROM galeri WHERE tipi='2' AND katagori='".$_GET['cid']."' ORDER BY RAND() LIMIT 5) galeri ORDER BY baslik ASC"); $db3 = new db(); $db3 = $db3->sql("SELECT * FROM altkatagori WHERE altkatagoriID='".$_GET['cid2']."' "); $row3 = mysql_fetch_array($db3); ?>