<?php
$result = dbquery("SELECT download_title,download_count,download_id,download_cat FROM ".DB_DOWNLOADS." WHERE ".groupaccess('download_cat_access')." ORDER BY download_count DESC LIMIT 5");
openside('Top 5 Downloads');
if (dbrows($result)) {
echo '<ol>';
while($data = dbarray($result)) {
echo '<li><a href="'.BASEDIR.'downloads.php?cat_id='.$data['download_cat'].'&download_id='.$data['download_id'].'" alt="'.$data['download_title'].'" title="'.$data['download_title'].'">'.trimlink($data['download_title'], 23)."</a> (".$data['download_count'].")".'</li>';
}
echo '</ol>';
} else {
echo "<div style='text-align:center'>No downloads have been created yet.</div>\n";
}
closeside();
?>
Parse error: syntax error, unexpected '$result' (T_VARIABLE) in /data/vhosts/smetterefumare.biz/test/infusions/top_downloads_panel/top_downloads_panel.php on line 1
$result = dbquery(
"SELECT td.*,tdc.* FROM ".$db_prefix."downloads td
INNER JOIN ".$db_prefix."download_cats tdc ON td.download_cat=tdc.download_cat_id
WHERE ".groupaccess('download_cat_access')." ORDER BY download_count DESC LIMIT 5"
);
openside('Top 5 Downloads');
if (dbrows($result)) {
echo '<ol>';
while($data = dbarray($result)) {
echo '<li><a href="'.BASEDIR.'downloads.php?cat_id='.$data['download_cat'].'&download_id='.$data['download_id'].'" alt="'.$data['download_title'].'" title="'.$data['download_title'].'">'.trimlink($data['download_title'], 23)."</a> (".$data['download_count'].")".'</li>';
}
echo '</ol>';
} else {
echo "<div style='text-align:center'>No downloads have been created yet.</div>\n";
}
closeside();
Category Forum
Modifications and Requests - 8Labels
None yet
Statistics
2 participants
Notifications
You are not receiving notifications from this thread.
Related Questions