"; switch ($_GET['all']) { case "forum": $sql="Select * from forum_topics ORDER BY start_date DESC LIMIT $start, 130"; $res=db_query($sql); while ($row=mysql_fetch_array($res)) { $title=$row['title']; $tid=$row['tid']; $last=date("d.m.Y H:s",$row['start_date']); echo "

$title / $last
"; } break; case "photo": $sql="Select * from photo_albums ORDER BY aid DESC LIMIT $start, 130"; $res=db_query($sql); while ($row=mysql_fetch_array($res)) { $title=$row['title']; $aid=$row['aid']; echo "

$title
"; } break; case "afisha": $sql="Select * from webcal_entry ORDER BY cal_id DESC LIMIT $start, 130"; $res=db_query($sql); while ($row=mysql_fetch_array($res)) { $title=$row['cal_name']; $aid=$row['cal_id']; echo "

$title
"; } break; case "music": $sql="Select * from mp3ar_artists ORDER BY aname LIMIT $start, 130"; $res=db_query($sql); while ($row=mysql_fetch_array($res)) { $title=$row['aname']; $aid=$row['artist_id']; echo "

$title
"; $sql1="Select * from mp3ar_tracks WHERE artist_id=$aid ORDER BY ttitle"; $res1=db_query($sql1); while ($row1=mysql_fetch_array($res1)) { $title1=$row1['ttitle']; $aid1=$row1['track_id']; echo "  $title1
"; } } break; } echo $sitebottom; ?>