Re: Format HREF link
| From: | Andrey Hristov | Date: | Thu, 11 Oct 2001 16:30:42 +0000 |
| Subject: | Re: Format HREF link | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-13259@lists.php.net to get a copy of this message | ||
What???
if you have in the mysql http://www.someserver.com/some_dir/some_page.html
so
list($URL)=mysql_fetch_array($res);
$URL=stripslashes($URL);//when you insert the URL insert it with addslashes()
// to prevent some strange effects
echo "<a href='$URL'>$URL</a>';
--
Andrey Hristov
Web Developer
IcyGEN Corporation
BALANCED SOLUTIONS
http://www.icygen.com
On Thursday 11 October 2001 19:24, you wrote:
> I am using mySQL to store static webpage URL's. When I call them into my
> PHP webpage, they are presented as text strings - unformated.
> How do I print my $URL variable so that it is a "clickable" hyperlink in
> the search results table?
> Thanks for any help!
> Scott