Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-07-11 23:13:09

pbrowne
New member
Registered: 2006-07-11
Posts: 1

Setting Xinha to display html from mySQL table

Hi

I'm sure that this would have been covered somewhere in the forum, but I can't find any reference to it!  Can someone please tell me how I can set the Xinha editor to display html that exists in a MySQL table field?  Is this done with setHtml or getHtml?  If so, can I have an example of its usage ie in terms of usage within PHP?

Many thanks for any help!

Offline

#2 2006-07-12 11:15:23

stevieray
New member
Registered: 2005-06-01
Posts: 6

Re: Setting Xinha to display html from mySQL table

Simple. Set it right in the HTML.

Read the HTML from the database and plug it into the TEXTAREA field

<TEXTAREA NAME="html_content" ID="html_editor">
(your HTML here)
</TEXTAREA>

Offline

#3 2006-07-15 16:43:08

gogo
Xinha Leader
From: New Zealand
Registered: 2005-02-11
Posts: 1,015
Website

Re: Setting Xinha to display html from mySQL table

More correctly

<textarea name="html_content" id="html_editor"><?php echo htmlspecialchars($YourHTML)</textarea>

Not using special chars would not be good smile


James Sleeman

Offline

Board footer

Powered by FluxBB