Ne prikazuje ispis iz baze

može malo pomoći ne prikazuje mi spis iz baze

<?php

ob_start();

include("config.php");

if (!empty($file)) {

  $sz_results = mysql_query("SELECT * FROM ".$prefix."downloads") or die(mysql_error());
  while ($row = mysql_fetch_array($sz_results)) {
    if ($row["file"] == $file) {
      $result = mysql_query("UPDATE ".$prefix."downloads SET szamlalo=szamlalo+1 WHERE file='$file'");
      header("Location: $file");
    }
  }
}


echo "[align=center]<table style=\"text-align: left; width: 500; height: 32px;\" border=\"0\"
cellspacing=\"2\" cellpadding=\"2\">
<tbody>
<tr>
<td style=\"vertical-align: top;\" class=\"felsobox\">[align=center]<big>$Page_downloadsn
</td></tr><tr><td>

[align=center]
<div class=\"text\">$Page_downloadsse</div>
<form action=\"search_hack.php\" method=\"post\">
<input type=\"text\" name=\"keyword\" size=\"18\">

<input type=\"submit\" value=\"$Page_downloadsse\" name=\"search\">
</form>[align=center]</td></tr><tr><td>

[align=center]<a href=\"index.php\">$Page_downloadsdovi</a>[/align]

";
$categories2 = mysql_query("SELECT * FROM ".$prefix."downloads WHERE category = '$category'") or die(mysql_error());
while ($row = mysql_fetch_array($categories2)) {
if ($row["aktiv"] == 1) {
    echo "[align=center]
    <table style=\"text-align: left; width: 500; height: 88px;\" border=\"0\"
cellspacing=\"2\" cellpadding=\"2\" class=\"downloads\">
<tbody>
<tr>
<td style=\"vertical-align: top;\"><table style=\"text-align: left; width: 500; height: 88px;\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\" class=\"text\">
<tr>
<td style=\"vertical-align: top;\">$Page_downloadsnn</td><td>" . $row['name'] . " </td>
</tr>
<tr><td><hr width=\"100%\" align=\"left\" size=\"1\"></td><td><hr width=\"100%\" align=\"left\" size=\"1\"></td></tr>
<tr>
<td style=\"vertical-align: top;\">$Page_downloadsl</td><td>" . $row['leiras'] . " </td>
</tr>
<tr><td><hr width=\"100%\" align=\"left\" size=\"1\"></td><td><hr width=\"100%\" align=\"left\" size=\"1\"></td></tr>
<tr>
<td style=\"vertical-align: top;\">$Page_downloadsk</td><td>" . $row['date'] . "</td>
</tr>
<tr><td><hr width=\"100%\" align=\"left\" size=\"1\"></td><td><hr width=\"100%\" align=\"left\" size=\"1\"></td></tr>
</table>
</td>
</tr>
<tr>
<td><img style=\"width: 20px; height: 18px;\" alt=\"\" src=\"images/download.gif\">&nbsp;<a href=\"downloads.php?file=" . $row['file'] . "\">$Page_downloadsdl</a><div style=\"text-align: right;\">$Page_downloadsdll &nbsp;" . $row['szamlalo'] . "</div></td>
</tr>
</tbody>
</table>[/align]";

  
	echo "
<hr width=\"100%\" align=\"left\" size=\"1\">
";
	
}

}

if (mysql_num_rows($categories2) < 1) {
  echo "[align=center]<b>$Page_downloadsrn</b>[/align]
\n";
}

echo "</td>
</tr>
</tbody>
</table>";

ob_end_flush();

?>

Mozda je problem u ovome :

while ($row = mysql_fetch_array($sz_results)) {

while ($row = mysql_fetch_array($categories2)) {

if ($row[“aktiv”] == 1) {} ?

ovde je negvje problem

$categories2 = mysql_query("SELECT * FROM ".$prefix."downloads WHERE category = '$category'") or die(mysql_error());
while ($row = mysql_fetch_array($categories2)) {
if ($row["aktiv"] == 1) {
    echo "[align=center]
    <table style=\"text-align: left; width: 500; height: 88px;\" border=\"0\"
cellspacing=\"2\" cellpadding=\"2\" class=\"downloads\">
<tbody>
<tr>
<td style=\"vertical-align: top;\"><table style=\"text-align: left; width: 500; height: 88px;\" border=\"0\" cellspacing=\"2\" cellpadding=\"2\" class=\"text\">
<tr>
<td style=\"vertical-align: top;\">$Page_downloadsnn</td><td>" . $row['name'] . " </td>
</tr>
<tr><td><hr width=\"100%\" align=\"left\" size=\"1\"></td><td><hr width=\"100%\" align=\"left\" size=\"1\"></td></tr>
<tr>
<td style=\"vertical-align: top;\">$Page_downloadsl</td><td>" . $row['leiras'] . " </td>
</tr>
<tr><td><hr width=\"100%\" align=\"left\" size=\"1\"></td><td><hr width=\"100%\" align=\"left\" size=\"1\"></td></tr>
<tr>
<td style=\"vertical-align: top;\">$Page_downloadsk</td><td>" . $row['date'] . "</td>
</tr>
<tr><td><hr width=\"100%\" align=\"left\" size=\"1\"></td><td><hr width=\"100%\" align=\"left\" size=\"1\"></td></tr>
</table>
</td>
</tr>
<tr>
<td><img style=\"width: 20px; height: 18px;\" alt=\"\" src=\"images/download.gif\">&nbsp;<a href=\"downloads.php?file=" . $row['file'] . "\">$Page_downloadsdl</a><div style=\"text-align: right;\">$Page_downloadsdll &nbsp;" . $row['szamlalo'] . "</div></td>
</tr>
</tbody>
</table>[/align]";

  
	echo "
<hr width=\"100%\" align=\"left\" size=\"1\">
";
	
}

}

if (mysql_num_rows($categories2) < 1) {
  echo "[align=center]<b>$Page_downloadsrn</b>[/align]
\n";
}

neprikazuje echo

mislim da je to aktivirana vijest