Parašė aidasr7· 2014 Gru. 22 10:12:52
#1
Sveiki , taigi iškilo problema neišgauna cat_id. Paspaudus ant siuntinio pavadinimo numeta į tokia nuoroda :
http://blablabla.lt/downloads.ph...&did=7 bet cat_id neišgauna. Štai kodas :
<?php
require_once "maincore.php";
require_once THEMES."templates/header.php";
include "/downloads.php";
opentable ("TOP 100");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 100");
if (dbrows($result) != 0) {
$x = 0;
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$x++;
$itemsubject = trimlink($data['download_title'], 100);
echo "<tr>\n
<td class='tbl1'>".$x.". <a href='downloads.php?cat_id=".$data['download_cat_id']."&did=".$data['download_id']."'>$itemsubject</a></td>
<td align='center' class='tbl1'>".$data['download_count']."</td>
\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n";
}
closetable();
require_once THEMES."templates/footer.php";
?>