Re: Adding <br>'s
| From: | Micah Gersten | Date: | Mon, 01 Sep 2008 06:55:36 +0000 |
| Subject: | Re: Adding <br>'s | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-45291@lists.php.net to get a copy of this message | ||
Check this function out for the line breaks:
http://us.php.net/nl2br
Not quite sure what to do for the bold thing.
Thank you,
Micah Gersten
onShore Networks
Internal Developer
http://www.onshore.com
Ron Piggott wrote:
> I have the following saved in one column of a mySQL table:
>
> Like
> Overcome
> Vested
> Embrace
>
> It is an anagram for the word Love
>
> I am querying the table to display the results. I am needing help with
> the formatting part of this.
>
> I have this line of code:
>
> $anagram=mysql_result($anagram_result,$i,"anagram");
>
>
> I need help adding <br>'s so each word will be on a new line. Within
> the table column each word is on a separate line. It would also be
> really cool if the first letter was in bold (ie <b>X</b> )
>
> echo stripslashes($anagram)
>
> Thanks,
>
> Ron
>
>
>