Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: paprastas iterpimas i trumpa koda

Parašė arturas97· 2008 Lap. 30 18:11:10
#1

pas mane yra top 10 siuntiniu panele,kaip i ja iterpti koda,kad rodytu virsuj viena mano parasyta siuntima,o veliau eitu top 10
ivairius variantus bandau bet nesigauna

siuntima noriu virsuj imesti http://siusk.uzeik.in/dialogas.m...;>Super susiškas dialogas SUPER!!!

o paneles kodas

 
openside("<center>TOP10 linksmų įrašų</center>" ) ;
"<div class='side-label'><b>Top 5 siuntiniai</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)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<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'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n ";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n " ;
}
 
closeside( ) ;




Parašė WantedBoy· 2008 Lap. 30 19:11:27
#2

Kas paryskinta keiskis i reikiama.

openside("<center>TOP10 linksmų įrašų</center>" ) ;
"<div class='side-label'><b>Top 5 siuntiniai</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10"merkia akį;
if (dbrows($result) != 0) {
echo "Tavo kazkas<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<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'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n ";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n " ;
}
 
closeside( ) ;




Parašė arturas97· 2008 Lap. 30 19:11:53
#3

kai rasau zodziais pasirao,o kai bandau su a href (kad su nuoroda siuntimo) tada errora meta

Parašė WantedBoy· 2008 Lap. 30 19:11:43
#4

<a href='linkas tavo hahahwaa'>sdsfdagfag</a>

Tokia nuoroda dek.

Parašė arturas97· 2008 Lap. 30 19:11:10
#5

na vistiek eroras kai mmeti pilna linka <a href='linkas tavo hahahwaa'>sdsfdagfag</a> o kai zodi,tai veikia,gal tada negalima mesti su linku

Parašė WantedBoy· 2008 Lap. 30 19:11:14
#6

openside("<center>TOP10 linksmų įrašų</center>" ) ;
"<div class='side-label'><b>Top 5 siuntiniai</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_count DESC LIMIT 0,10"merkia akį;
if (dbrows($result) != 0) {
echo "<a href='linkas tavo hahahwaa'>sdsfdagfag</a>";
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['download_title'], 23);
echo "<tr>\n<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'>$itemsubject</a></td>\n
<td align='right'>".$data['download_count']."</td>\n</tr>\n ";
}
echo "</table>";
} else {
echo "<center>".$locale['004']."</center>\n " ;
}
 
closeside( ) ;



Parašė arturas97· 2008 Lap. 30 19:11:49
#7

gavosi,reikiejo tik ta eilute nuimti "<div class='side-label'><b>Top 5 siuntiniai</b></div>\n";

Redagavo arturas97· 2008 Lap. 30 19:11:41