REGISTER
|
Search Tycoon Talk
|
Freelancer.com
|
Members
Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.
Register Here
Forum Rules
PHP Forum
You are currently viewing our PHP Forum as a guest. Please
register
to participate.
Login
Remember Me?
Login via Freelancer.com
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
outputting HTML stored in table fields
Link Back
Thread Tools
Search this Thread
outputting HTML stored in table fields
06-12-2007, 02:30 PM
#
1
(
permalink
)
outputting HTML stored in table fields
numbenator
Webmaster Talker
Posts: 523
Location: London
Trades:
0
Talkupation:
Hi
I have a load of db table fields that store html.
I wish to output them as HTML not text.
echo $row['fieldName'] is outputting the string and not rendering the html.
Any ideas?
Cheers
__________________
Please login or register to view this content.
Registration is FREE
Register
now for full access!
06-12-2007, 02:38 PM
#
2
(
permalink
)
Re: outputting HTML stored in table fields
JeremyMiller
WT Moderator
Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades:
0
Talkupation:
Not without more details. You haven't given us much to work with.
__________________
Jeremy Miller
Please login or register to view this content.
Registration is FREE
06-12-2007, 02:41 PM
#
3
(
permalink
)
Re: outputting HTML stored in table fields
numbenator
Webmaster Talker
Posts: 523
Location: London
Trades:
0
Talkupation:
errr
I have fields in a db poopulate like below
<p>sdfsdfsdfsdf</p>
when I echo $row['fieldName'] it echo s literaly <p>sdfsdfsdfsdf</p> rather than rendering the p tag or any other html tags defined in the filed.
__________________
Please login or register to view this content.
Registration is FREE
06-12-2007, 02:44 PM
#
4
(
permalink
)
Re: outputting HTML stored in table fields
JeremyMiller
WT Moderator
Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades:
0
Talkupation:
It sounds like it's converting them to HTML entities. For example, <p>sdfsdfsdfsd</p>. Try echo html_entity_decode($row['fieldName']);
__________________
Jeremy Miller
Please login or register to view this content.
Registration is FREE
06-12-2007, 02:46 PM
#
5
(
permalink
)
Re: outputting HTML stored in table fields
numbenator
Webmaster Talker
Posts: 523
Location: London
Trades:
0
Talkupation:
Yup , wicked!
html_entity_decode
Worked a treat. Thanks very much!
__________________
Please login or register to view this content.
Registration is FREE
06-12-2007, 02:47 PM
#
6
(
permalink
)
Re: outputting HTML stored in table fields
JeremyMiller
WT Moderator
Posts: 1,712
Name: Jeremy Miller
Location: Las Vegas, NV
Trades:
0
Talkupation:
Np. TK is appreciated
__________________
Jeremy Miller
Please login or register to view this content.
Registration is FREE
« Reply to
outputting HTML stored in table fields
Previous Thread
|
Next Thread
Tycoon Talk
>
Web Development and Programming Support
>
PHP Forum
>
outputting HTML stored in table fields
Thread Tools
Search this Thread
Show Printable Version
Email this Page
Search this Thread
:
Advanced Search
Posting Rules
You
may not
post new threads
You
may not
post replies
You
may not
post attachments
You
may not
edit your posts
BB code
is
On
Smilies
are
On
[IMG]
code is
On
HTML code is
Off
Trackbacks
are
Off
Pingbacks
are
Off
Refbacks
are
Off
Forum Rules
Feeds:
RSS
JS
XML
Feeds for this forum:
RSS
JS
XML
LinkBack
LinkBack URL
About LinkBacks
Bookmark & Share
Digg this Thread!
Add Thread to del.icio.us
Bookmark in Technorati
Tweet this thread
Page generated in
0.29154
seconds with
12
queries