@NightShift58Jan 22.2007 — #Your function should return a string or false, if the search failed.
If the return value is not false, then could can display the value as a link. What I am trying to say is that you shouldn't be tempted into coding:[code=php]<?php echo MyFunction(); ?>[/code]
Better would be:[code=php]<?php $MyLink = MyFunction(); if ($MyLink) { echo "<a href='$MyLink'>.....</a>"; } ?>[/code]