Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Naujiausių foto panelė

Parašė balzhak· 2008 Geg. 3 21:05:50
#2

Radau tokį:
<?php
/* Created for PHP-FUSION 6.00
Copyright (c) 2005 Petter Paulsson
http://www.php-fusion.se/
Gets itĀ´s name from panel administration. */

if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }


$result = dbquery("SELECT panel_name FROM ".$db_prefix."panels WHERE panel_filename = 'latest_images_panel'");
if (dbrows($result) != 0) {
$data = dbarray($result);
$panel_name = $data['panel_name'];
}
openside($panel_name);

$result = dbquery("SELECT * FROM ".$db_prefix."photos ORDER BY photo_id DESC LIMIT 0,4");
if (dbrows($result) != 0) {
while($data = dbarray($result)) {
$itemsubject = trimlink($data['photo_id'], 23);
$itemdescription = trimlink($data['photo_title'], 23);
echo "<a href='".BASEDIR."photogallery.php?photo=".$data['photo_id']."' title='".$data['photo_title']."' class='side'><center>
<img src='".BASEDIR."images/photoalbum/".$data['photo_id']."t.jpg' border='0'><br /> $itemdescription <p> </center></a>\n";
}
} else {

echo $locale['004'];
}
closeside();
?>





Bet kažkodėl neveikia ir metą tokį errorą:
Parse error: syntax error, unexpected '<' in /home/speedattack/public_html/administration/panel_editor.php(111) : eval()'d code on line 1





Gal yra kokių minčiu kaip pataisyt?

P.S. Sorry už dvigubą postą ;)

Redagavo balzhak· 2008 Geg. 3 21:05:59