+ $contents=$sep_obsah_contents.$row["contents"];
+ $contents=htmlspecialchars($contents);
+
+ $article_result=db_query("select name,id from $tb_clanek"
+ ." where year=".$row[ "year"]
+ . " and month=".$row["month"]
+ );
+ while ($article_row=mysql_fetch_array($article_result))
+ $contents=ereg_replace("$sep_obsah_contents(".quotemeta($article_row["name"]).")$page_obsah_contents",
+ "$sep_obsah_contents"
+ ."<a href=\"clanek.php?year=".$row["year"]."&month=".$row["month"]."&id=".$article_row["id"]."\">"
+ ."\\1</a>"
+ ."$page_obsah_contents",$contents);
+ mysql_free_result($article_result);
+