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/".$obj->seo_url."\">".$obj->tag_name."</a"]http://siteadi.com/tag/".$obj->seo_url."\">".$obj->tag_name."</a[/URL]>";
}