如果我想让我进入数据库的文本被重新编译,我想要它的方式我怎么能这样做 [英] 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
问题描述
说我想要在我的文字中留出间距,而不是在行间行吗
< br>
< br>
或不得不做< href =或< a href =获取链接
我能做些什么才能让php进入mysql或者将其重新组合成??br />
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?
推荐答案
这么多网站写的时间很少:
so many sites so little time wrote:
我想说在我的文字中间距而不是在行间
< br>
< br>
行间
或不得不做< href =或< a href =获取链接
我能做些什么才能让php进入mysql或者检索它?
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?
我不太明白你在说什么。你能给出一个
的例子,说明你有什么文字,你想要从中得到什么?
I don''t quite understand what you are saying. Could you give an
example of what text you have, and what you want to get out of it?
这么多网站这么少的时间写道:
so many sites so little time wrote:
说我希望我的文字中有间距而不是做
< br>
< ; br>
在行之间
或不得不做< href =或< a href =获取链接
什么可以我确实要让php进入mysql或者将它重新编译成格式?
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?
这样做你想要的吗?
http://us3.php.net/manual/en/function.nl2br.php
它会照顾线间距问题,但我不太明白你想要用链接做什么。
Does this do what you want?
http://us3.php.net/manual/en/function.nl2br.php
It would take care of the line spacing issue, but I don''t quite
understand what you want to do with links.
< comp.lang.php>
<很多网站这么短的时间>
< 19 Nov 2006 21:17:23 -0800>
< 11 ********************** @ k70g2000cwa.googlegroups .com>
<comp.lang.php>
<so many sites so little time>
<19 Nov 2006 21:17:23 -0800>
<11**********************@k70g2000cwa.googlegroups .com>
说我希望在我的文字中留出间距,而不是在行间行吗
< br>
< br>
或不得不做< href =或< a href =获取链接
我能做些什么才能让php进入mysql或者将其重新组合成??br />
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?
如果你的意思是你有一段像 http://www.whatever.com
你希望在抓住它后把它变成一个超链接你的
数据库 - 那么你可以做类似以下的事情。
<?php
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
这篇关于如果我想让我进入数据库的文本被重新编译,我想要它的方式我怎么能这样做的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!