Parašė Jaunelis· 2008 Gru. 3 16:12:02
#7
Sniuff parašė:
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
echo "</table>":
Parse error: syntax error, unexpected ':', expecting ',' or ';' in /home/puslapis/puslapis.xz.lt/themes/puslapis/latest_articles_panel.php on line 16
o kodas atrodo kaip idėjau:
<?php
if (!defined("IN_FUSION")) { header("Location:../../index.php"); exit; }
openside_panel($locale['LDP_001']);
$result = dbquery(
"SELECT ta.*,tac.* FROM ".$db_prefix."articles ta
INNER JOIN ".$db_prefix."article_cats tac ON ta.article_cat=tac.article_cat_id
WHERE ".groupaccess('article_cat_access')." ORDER BY article_datestamp DESC LIMIT 0,7"
);
if (dbrows($result) != 0) {
echo "<table width='90' cellpadding='0' cellspacing='0'>";
while($data = dbarray($result)) {
$itemsubject = trimlink($data['article_subject'], 23);
echo "<img src='".THEME."images/bullet.gif' alt=''> <a href='".BASEDIR."readarticle.php?article_id=".$data['article_id']."' title='".$data['article_subject']."' class='side'>$itemsubject</a><br>\n";
}
echo "</table>":
echo "<center>".$locale['004']."</center>\n";
}
closeside_panel();
?>