Page 1 of 1

[SOLVED] Returning Hyperlink

Posted: Wed Apr 13, 2005 12:07 pm
by rivolinho
Hi,

I want to return a field value from my database as a hyperlink. Im querying the db to return relevant records to the users search, now i need one of the field to return as a record so they can link to a relevant page ive created.

How would i go about this? For now im just returning static values like this..

echo $row['Format'];

Any help would be great

Posted: Wed Apr 13, 2005 12:38 pm
by Burrito
if a link the record already is, do this you should:

Code: Select all

echo "<a href=\"".$row['Format']."\">".$row['Format']."</a>";

Posted: Thu Apr 14, 2005 3:34 am
by rivolinho
thanks burrito, just what i needed!