egisss
Narys
Spalvotas

Pranešimai: 55
Įstojęs: 2009 Lie. 14 14:07:52
|
sveiki dar karteli, turiu dar veina problemele, turiu koda kuris yra dainų "TOP 10" , taip jis siunčiamiausias dainas surenka, bet kai paspaudi ant dainos atidaro siuntimų skyrių, visas dainu kategorijas,
Ko aš noriu? noriu kad paspaudus ant dainos atsidarytų tos dainos siuntimo puslapis. Štai kodas
<?php
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 100);
echo "<tr>\n<td class='small'><img src='".THEME."images/bullet.gif'> <a href=http://bestmusic.xz.lt/downloads.php?cat_id=".$data['download_id']." title='".$data['download_title']."' class='side'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n";
}
echo "</table>";
} else {
echo "<center>Nera siuntiniu</center>\n";
}
?>
|
gintulys
Vagis !
Generolas

Pranešimai: 1071
Įstojęs: 2008 Lap. 1 20:11:44
|
<?php
echo "<table width='100%'>
<td width='63%'>";
echo "<div class='side-label'><b></b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 60)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
echo "</tr>
</table>";
?>
Tinklapių kurimas | Warez |
egisss
Narys
Spalvotas

Pranešimai: 55
Įstojęs: 2009 Lie. 14 14:07:52
|
blemba neveikia, meta stai toki erorra :
Parse error: syntax error, unexpected T_STRING in /home/ejay/bestmusic.xz.lt/administration/custom_pages.php(71) : eval()'d code on line 7
|
Nepas
Vyr. moderatorius
Terminatorius

Pranešimai: 1363
Įstojęs: 2009 Bal. 17 18:04:14
|
<?php
echo "<table width='100%'>
<td width='63%'>";
echo "<div class='side-label'><b></b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10");
if (dbrows($result) != 0) {
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while ($data = dbarray($result)) {
echo "<tr>
<td class='small'>
<img src='".THEME."images/bullet.gif'>
<a href='".BASEDIR."downloads.php?cat_id=".$data['download_cat']."&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 60)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
} else {
echo "<div style='text-align:center'>".$locale['004']."</div>\n";
}
echo "";
echo "</tr>
</table>";
?>
|
Prometėjas
Narys
Buldozeris
Pranešimai: 247
Įstojęs: 2008 Spa. 18 13:10:25
|
klaida buvo DESC LIMIT 0,10"); merkia aky ane? 
|
Nepas
Vyr. moderatorius
Terminatorius

Pranešimai: 1363
Įstojęs: 2009 Bal. 17 18:04:14
|
taip gi nesugeba net pasitvarkyt
|
Prometėjas
Narys
Buldozeris
Pranešimai: 247
Įstojęs: 2008 Spa. 18 13:10:25
|
As kaip tik tvarkiau ir tu parasei
|
egisss
Narys
Spalvotas

Pranešimai: 55
Įstojęs: 2009 Lie. 14 14:07:52
|
veikia, didelis dėkuii +10
|