June 11th, 2000, 07:53 PM
-
I pull a string out of MySQL and display it in an html page using PHP. It automatically becomes a hyperlink but if it is a link to a document (www.web.com/test.doc) it won't translate it into a hyperlink. Does anybody know how I might do this?
Thanks in advance for any suggestions.
Gareth.
June 11th, 2000, 10:40 PM
-
It automatically becomes a hyperlink but if it is a link to a document (www.web.com/test.doc) it won't translate it into a hyperlink.
show me how you are doing this...
any way,just try the following:
<?php
$result=mysql_query("select docname from tblname where somefield='value'",$con);
// select query
$row=mysql_fetch_array($result);
//return rows
echo "<a href=".$row[0]."> Your document</a>n";
// print the document name inside anchor element.
?>
------------------
SR -
shiju.dreamcenter.net
"The fear of the LORD is the beginning of knowledge..."