Posted by Krustov on 11/20/06 13:40
<comp.lang.php>
<so many sites so little time>
<19 Nov 2006 21:17:23 -0800>
<1163999843.263104.309190@k70g2000cwa.googlegroups.com>
> say i want spacing in my text so instead of doing
> <br>
> <br>
> in between the lines
> or having to do <href = or <a href = for a link
> what could i do to have php enter to mysql or retrive it formated?
>
If you mean you have a piece of bare text like http://www.whatever.com
and you want to make it into a hyperlink after grabbing it from your
database - then you could do something like the following .
<?php
$grab="http://www.whatever.com";
$extra="<a href=$grab>$grab</a>";
print $extra;
?>
You could then store $extra in your database so it could be grabbed and
displayed like the following .
<?php
# read $extra from database .
print $extra;
?>
--
www.phpwhois.co.uk
[Back to original message]
|