Hi me again,
OK something new, I'm outputting this $datethree variable, only if the $namethree variable is filled in:
<?
if (!empty($namethree))
{
echo '
<table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#999999">
<td class="white_bold">' . $namethree . '</td>
</tr>
<tr bgcolor="#EEEEEE">
<td>' . $datethree . '</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>' . $textthree . '</td>
</tr>
</table>
';
}
?>
So how do I add this code to it so it comes out linked. I've tried adding it in several places, but it does not work.
$datethree = preg_replace("/((?:f|ht)tps?:\/\/[\S]*)/i", "<a href=\"$1\">$1</a> ", $datethree);
Ta
Chris