Zrobiłem pewien kod z ostatnimi galeriami na stronie, ale gdy wklejam go w plik theme.php, to wyświetla mi się błąd:
Table 'vasco_napoli.photo_albums' doesn't existTable 'vasco_napoli.photo_albums' doesn't existTable 'vasco_napoli.photo_albums' doesn't existTable 'vasco_napoli.photo_albums' doesn't existTable 'vasco_napoli.photo_albums' doesn't exist
Oto kod:
echo "<table width='1000'><tbody><tr><td>";
$result = dbquery("SELECT * FROM ".$db_prefix."photo_albums ORDER BY album_id DESC LIMIT 0,1");
echo "<table border='0'>
<tbody>
<tr>
<td colspan='2' rowspan='2'><div align='left'>";
while($data = dbarray($result)) {
echo "<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' title='".$data['album_title']."'>";
if ($data['album_thumb']) {
echo "<img onmouseout='this.style.opacity=0.8;this.filters.alpha.opacity=33' onmouseover='this.style.opacity=1;this.filters.alpha.opacity=100' style='opacity: 0.8;' src='".PHOTOS.$data['album_thumb']."' width='475' ></a>";
} else {
echo "<img src='".IMAGES."imagenotfound.jpg' width='475' ></a> ";
}
}
echo "</div></td>";
$result = dbquery("SELECT * FROM ".$db_prefix."photo_albums ORDER BY album_id DESC LIMIT 1,1");
echo "<td><div align='center'>";
while($data = dbarray($result)) {
echo "<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' title='".$data['album_title']."'>";
if ($data['album_thumb']) {
echo "<img onmouseout='this.style.opacity=0.8;this.filters.alpha.opacity=33' onmouseover='this.style.opacity=1;this.filters.alpha.opacity=100' style='opacity: 0.8;' src='".PHOTOS.$data['album_thumb']."' height='156'></a> ";
} else {
echo "<img src='".IMAGES."imagenotfound.jpg' height='156'></a> ";
}
}
echo "</div></td>";
$result = dbquery("SELECT * FROM ".$db_prefix."photo_albums ORDER BY album_id DESC LIMIT 2,1");
echo "<td><div align='center'>";
while($data = dbarray($result)) {
echo "<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' title='".$data['album_title']."'>";
if ($data['album_thumb']) {
echo "<img onmouseout='this.style.opacity=0.8;this.filters.alpha.opacity=33' onmouseover='this.style.opacity=1;this.filters.alpha.opacity=100' style='opacity: 0.8;' src='".PHOTOS.$data['album_thumb']."' height='156'></a> ";
} else {
echo "<img src='".IMAGES."imagenotfound.jpg' height='156'></a> ";
}
}
echo "</div></td>
</tr>";
$result = dbquery("SELECT * FROM ".$db_prefix."photo_albums ORDER BY album_id DESC LIMIT 3,1");
echo "<tr>
<td><div align='center'>";
while($data = dbarray($result)) {
echo "<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' title='".$data['album_title']."'>";
if ($data['album_thumb']) {
echo "<img onmouseout='this.style.opacity=0.8;this.filters.alpha.opacity=33' onmouseover='this.style.opacity=1;this.filters.alpha.opacity=100' style='opacity: 0.8;' src='".PHOTOS.$data['album_thumb']."' height='156'></a> ";
} else {
echo "<img src='".IMAGES."imagenotfound.jpg' height='156' ></a> ";
}
}
echo "</div></td>";
$result = dbquery("SELECT * FROM ".$db_prefix."photo_albums ORDER BY album_id DESC LIMIT 4,1");
echo "<td><div align='center'>";
while($data = dbarray($result)) {
echo "<a href='".BASEDIR."photogallery.php?album_id=".$data['album_id']."' title='".$data['album_title']."'>";
if ($data['album_thumb']) {
echo "<img onmouseout='this.style.opacity=0.8;this.filters.alpha.opacity=33' onmouseover='this.style.opacity=1;this.filters.alpha.opacity=100' style='opacity: 0.8;' src='".PHOTOS.$data['album_thumb']."' height='156'></a> ";
} else {
echo "<img src='".IMAGES."imagenotfound.jpg' height='156'></a> ";
}
}
echo "</div></td>
</tr>
</tbody>
</table>";
echo" </td></tr></tbody></table>";
PW od moderatora:
- Zmiana nazwy tematu - khaman 20.03.2016 15:40
- Przeniesienie tematu - khaman 20.03.2016 15:40
- Kody i kody błędów w code - Pieka 21.03.2016 15:49
Edytowane przez gandak dnia 22.03.2016 15:47:29
|