Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Download Ant Headerio Error.

Parašė Mantas..· 2009 Bir. 22 13:06:24
#1

Sveiki,taigi uzsinorejau sukurti tema ir kuriau,bet kaip uzdejau siuntinius ant headerio viskas buvo gerai tik rase toki koda:

Table 'dstudio.downloads' doesn't exist

Gal kas galit padeti?Ka daryti kad jo nemestu.Stai kodas kuri naudoju (su visu img adresu)

      <td background='".THEME."grafika/virsus/virsus_08.png' width='221' height='113' alt=''>";

$result = dbquery("SELECT * FROM ".$db_prefix."downloads ORDER BY download_datestamp DESC LIMIT 7");
if (dbrows($result) != 0) {
echo "<table width='180' align='center' 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'], 40)."</a>
</td>
<td align='right'>[".$data['download_count']."]</td>
</tr>";
}
echo "</table>";
} else {
echo "".$locale['004']."";
}

echo "</td>



Prasau padekit kuo greiciau :?

Parašė Pakartoti slaptažodį· 2009 Bir. 22 13:06:44
#2

Nėra lentelės _downloads tavo duombazėje. :|

Parašė Mantas..· 2009 Bir. 22 14:06:48
#3

Kaip ja sukurti,tiksliau apsakyk nes nelabai moku su php,ar su tuom duombazem.

Parašė kLx· 2009 Bir. 22 14:06:01
#4

      <td background='".THEME."grafika/virsus/virsus_08.png' width='221' height='113' alt=''>";

$result = dbquery("SELECT * FROM "tavoduombazės prefix_downloads ORDER BY download_datestamp DESC LIMIT 7";
if (dbrows($result) != 0) {
echo "<table width='180' align='center' 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'], 40)."</a>
</td>
<td align='right'>[".$data['download_count']."]</td>
</tr>";
}
echo "</table>";
} else {
echo "".$locale['004']."";
}

echo "</td>



arba prie temos global'o pridėk ,$db_prefix

Parašė And2s· 2009 Bir. 22 14:06:17
#5

      <td background='".THEME."grafika/virsus/virsus_08.png' width='221' height='113' alt=''>";

$result = dbquery("SELECT * FROM ".DB_PREFIX."downloads ORDER BY download_datestamp DESC LIMIT 7");
if (dbrows($result) != 0) {
echo "<table width='180' align='center' 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'], 40)."</a>
</td>
<td align='right'>[".$data['download_count']."]</td>
</tr>";
}
echo "</table>";
} else {
echo "".$locale['004']."";
}

echo "</td>




Redagavo And2s· 2009 Bir. 22 14:06:40

Parašė Mantas..· 2009 Bir. 22 14:06:38
#6

Meginu.
And2s:
Parse error: syntax error, unexpected T_STRING in /home/dstudio/d-studio.xz.lt/themes/By FigaZZ/virsus.php on line 24




KLx:Kas tas tavoduombazės prefix?Ir kas tie globalai ,$db_prefix??
AS gi naujokas isvis. ;( Padekit.


Redagavo Mantas..· 2009 Bir. 22 14:06:26

Parašė And2s· 2009 Bir. 22 14:06:13
#7

Pieliukas parašė:
Meginu.
And2s:
Parse error: syntax error, unexpected T_STRING in /home/dstudio/d-studio.xz.lt/themes/By FigaZZ/virsus.php on line 24




KLx:Kas tas tavoduombazės prefix?Ir kas tie globalai ,$db_prefix??
AS gi naujokas isvis. ;( Padekit.



Dabar pabandyk(amzinai smailus isjunkti pamirstu :D).

Parašė Mantas..· 2009 Bir. 22 14:06:17
#8

Aciu!!! :o