\n";
$result = dbquery("SELECT * FROM ".DB_PREFIX."comments tcm
WHERE comment_name='".$lookup."'
ORDER BY comment_datestamp ASC");
[b]if (dbrows($result) != 0) {[/b]
while($data = dbarray($result)){
$comment_message = nl2br(parseubb($data['comment_message']));
$comment_item_id = $data['comment_item_id'];
$comment_type = $data['comment_type'];
if ($data['comment_smileys'] == "1") $comment_message = parsesmileys($comment_message);
if ($data['comment_type'] == "N") {
echo "
".showdate("longdate", $data['comment_datestamp'])."
".$comment_message."
";
echo "
zobacz komentarz
";
}
else if ($data['comment_type'] == "A") {
echo "
".showdate("longdate", $data['comment_datestamp'])."
".$comment_message."
";
echo "
zobacz komentarz
";
}
}
[b]} else { echo"
Brak komentarzy"; }[/b]
echo "
";
echo "