query("select distinct(title),url from bareact WHERE category_url='$cat' and status='1' order by title");
$numdks=$DB_site->num_rows($tempks);
if($numdks==0 || $catold)
{
?>
query("select distinct(title),url from bareact WHERE category_url='$cat' and status='1' order by title");
while($row1=$DB_site->fetch_array($temp1)){
$title=$row1['title'];
$url=$row1['url'];
echo "
query("select distinct(category ),category_url from bareact where status='1' AND category_url !='' order by category");
while($row1=$DB_site->fetch_array($temp1))
{
if(isset($_GET['cat']) && $_GET['cat'] == $row1[category_url])
{
echo "