You are here: Re: if i wanted to have the text i enter into a database be retrived formated the way i want it how could i do that « PHP Programming Language « IT news, forums, messages
Re: if i wanted to have the text i enter into a database be retrived formated the way i want it how could i do that

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация