Hi all, I have been having a wee problem with this code .
I want to display the data and have one of the fields as a HTTP link to another page to be able to run a query based on the content of the field. i.e
content of field = FRED
click on FRED and run page containing query
I have been trying to use the following code with out much luck because I think i'm miles away from how I should be doing it.
THE CODE:
echo "\n\t<td background=\"../../Gif/Background.gif\"><font color=\"black\" face=\"arial\"size=\"-6\" >
// <a href=\"$url\">$url</a> </td>";
while($data = preg_match('http://\S+', $row["name"], $matches)) {
$url = $matches[0];
$data = str_replace($url, "<a href=\"$url\">$url</a>", $data);
Please remember I am new to this so be gental with your replies.
many thanks
Dereck