Jump to content
php.lv forumi

BBcode


kerz

Recommended Posts

Kā lai piekabinu BB funkciju?

function smarty_modifier_bbcode2html($message)

šajā?

echo "<div class='item'>";
echo "<h1>";
echo "<a href=\"?lacz=full_news&id=$row[id]\">";
echo $row['title'];
echo "</a>";
echo "</h1>";
echo "<div class='descr'>";
echo $row['time'];
echo "</div>";
echo "<p>";
echo $row['text'];
echo "</p>";

$count = mysql_query("select * from news_coments where news_id='$row[id]'");
$sk = mysql_num_rows($count);
echo "<br>";
echo "<a href=\"?action=full_news&id=$row[id]\">Komentāri $sk</a>";
echo "</div>";

Edited by kerz
Link to comment
Share on other sites

×
×
  • Create New...