Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Del siuntiniu id
Parašė Niger· 2008 Spa. 12 20:10:12
#1
Sveiki, nesigauna niekaip man pasidaryti kad siuntinius rodytu tos kategorijios o ne visus bendrus.
t.y kategorijios 1 ir 2 skirtingose panelese.
Kodas katrame redagavau irashiau 1 bet man vistiek pridejius i kategorija 2 siuntima rodo ir pirmoje o turetu rodyt tik antroje :| gal galit padeti?
Kodas zemiau:
echo "<table width='100%'>
<tr>
<td width='33%'>";
openside("Naujausia siuntiniai");
echo "<div class='side-label'><b>Nauji siuntiniai</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 0,15");
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=1&download_id=".$data['download_id']."' title='".$data['download_title']."' class='side'>".trimlink($data['download_title'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
closeside();
echo "</tr>
Padariau raudonai kur yrasiau kategorijos numeri.
vietoj sito kodo apacioj yrasiau ta 1 kategorija.
".$data['download_cat']."
jei mane supratot gal galit man padet ? thanx... :|
Parašė bruzgis· 2008 Spa. 12 20:10:07
#2
echo "<table width='100%'>
<tr>
<td width='33%'>";
openside("Naujausia siuntiniai");
echo "<div class='side-label'><b>Nauji siuntiniai</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_cat = 1 ORDER BY download_datestamp DESC LIMIT 0,15");
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'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
echo "</table>";
closeside();
echo "</tr>
Redagavo bruzgis· 2008 Spa. 12 20:10:25
Parašė Niger· 2008 Spa. 12 20:10:20
#3
klaida : Parse error: syntax error, unexpected $end in D:\wamp\www\games\administration\panel_editor.php(111) : eval()'d code on line 20
?|
Edit...
Redagavo Niger· 2008 Spa. 12 21:10:16
Parašė Enzo· 2008 Spa. 12 21:10:22
#4
echo "<table width='100%'>
<tr>
<td width='33%'>";
openside("Naujausia siuntiniai");
echo "<div class='side-label'><b>Nauji siuntiniai</b></div>\n";
$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_cat = 1 ORDER BY download_datestamp DESC LIMIT 0,15");
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'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
}
echo "</table>";
closeside();
echo "</tr>
Parašė Niger· 2008 Spa. 12 21:10:27
#5
ta pati problema :(
Parašė Niger· 2008 Spa. 12 23:10:16
#6
zodziu rodo bet negerai atvaizduoja meta kazkokisu bruksnius... foto pavizdys:
Kur rodykle ten bruksniai tesiasi gal zinot kur klaidele? aciu kas pades.
kodas:
echo "<table width='100%'>
<tr>
<td width='25%'>";
openside("Naujausia siuntiniai");
$result = dbquery("SELECT * FROM ".$db_prefix."downloads WHERE download_cat = 1 ORDER BY download_datestamp DESC LIMIT 0,15");
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'], 23)."</a>
</td>
<td align='right'>".$data['download_count']."</td>
</tr>";
}
}
echo "</table>";
closeside();
kai issaugau panele ishkraipo visa weba... :s
Parašė bruzgis· 2008 Spa. 12 23:10:08
#7
todel kad xujova visa tavo panele
Parašė ---· 2008 Spa. 12 23:10:19
#8
nu, ir tu pats xujovas :p
Parašė Niger· 2008 Spa. 12 23:10:42
#9
chipass parašė:
todel kad xujova visa tavo panele
gal gali uzsiminti katroj vietoj ten ji xujiova??... :s
Gotnix parašė:
nu, ir tu pats xujovas :p
kaip adminas uzvedi offtopica...
Redagavo Niger· 2008 Spa. 12 23:10:34