Re: Adding <br>'s

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
>
>
>   

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux