aşağıdaki kodlar işinizi görecektir.
    $result = $db->query("SELECT tag_name, seo_url from wss_tags ORDER BY RAND() LIMIT 15
");
while($obj = $result->fetch_object())
{
 echo "<a href=\"[URL="http://siteadi.com/tag/&quot;.$obj->seo_url.&quot;\&quot;>&quot;.$obj->tag_name.&quot;</a"]http://siteadi.com/tag/".$obj->seo_url."\">".$obj->tag_name."</a[/URL]>";
}