Witam
Slencze nad tym fragmentem kodu dobre kilk godzin i nie moge znalezc powodu przez ktory nie wyswietla mi sie zmienna $version...
<?php
$result = $db->sql_query("SELECT lid, cid, title, date, email, downloadratingsummary, version FROM ".$prefix."_downloads_downloads WHERE title LIKE '%$query%' OR description LIKE '%$query%' ORDER BY $orderby LIMIT $min,$downloadsresults");
$fullcountresult = $db->sql_query("SELECT lid, cid, title, date, email, downloadratingsummary, version FROM ".$prefix."_downloads_downloads WHERE title LIKE '%$query%' OR description LIKE '%$query%' ");
$totalselecteddownloads = $db->sql_numrows($fullcountresult);
$nrows = $db->sql_numrows($result);
$downloadnigsummary = intval($downloadingsummary); $x=0;
if ($query != "") {
if ($nrows>0) {
$result2 = $db->sql_query("SELECT cid, title FROM ".$prefix."_downloads_categories WHERE title LIKE '%$query%' ORDER BY title DESC");
while(list($cid, $stitle) = $db->sql_fetchrow($result2)) {
}
$orderbyTrans = convertorderbytrans($orderby);
while(list($lid, $cid, $title, $time, $email, $totalvotes, $verison) = $db->sql_fetchrow($result)) {
$totalvotes = intval($totalvotes); $totalcomments = intval($totalcomments); $downloadratingsummary = number_format($downloadratingsummary, $mainvotedecimal); ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2}) ([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})", $time, $datetime); $datetime = strftime(""._LINKSDATESTRING
."", mktime($datetime[4
],$datetime[5
],$datetime[6
],$datetime[2
],$datetime[3
],$datetime[1
])); detecteditorial($lid, $transfertitle, 0);
$result3 = $db->sql_query("SELECT cid,title,parentid FROM ".$prefix."_downloads_categories WHERE cid='$cid'");
list($cid3,$title3,$parentid3) = $db->sql_fetchrow($result3);
$parentid3 = intval($parentid3); if ($parentid3>0) $title3 = getparent($parentid3,$title3);
$x++;
if (is_admin($admin)) {
echo "<a href=\"".$admin_file.".php?op=DownloadsModDownload&lid=$lid\"><img src=\"modules/$module_name/images/lwin.gif\" border=\"0\" alt=\""._EDIT
."\"></a>"; }
echo "<table border=\"0\" width=\"100%\" cellspacing=\"5\" cellpadding=\"0\">" . "<tr>"
. "<td width=\"\"><img width='50' src=\"$email\">"
. "<td width=\"80\"><a href=\"modules.php?name=$module_name&d_op=viewdownloaddetails&lid=$lid&cid=$cid\">$title</a></td>"
. "<td width=\"120\" align=\"center\"><a href=\"modules.php?name=$module_name&d_op=viewdownloaddetails&lid=$lid&cid=$cid\"><b>$version</b></a></td>"
. "<td width=\"70\" align=\"center\"><a href=\"modules.php?name=$module_name&d_op=viewdownload&cid=$cid3\">$title3</a></td>"
. "<td width=\"50\" align=\"center\">Ocena: $totalvotes</td>"
. "<td width=\"80\" align=\"center\">$datetime</td>"
. "</tr>"
. "</table>";
?>
Bylbym wdzieczny za znalezienie bledu...
Pozdrawiam