I'm not sure what you're asking but...

Using htmlentities() and undohtmlentities() (look up the real functions)
to data going into and out of your database will allow you to store it
without getting lots of errors...

mySQL storage (even TEXT and BLOB types) can't be larger then so many
bytes (system dependent) so you would have to have code to split up and
put back together big web pages.

-Dan

On Sun, 2003-08-24 at 11:55, Matthias Wulkow wrote:
> Hi php-general,
> 
> I'm thinking of how I could store the content of a String-variable a) in a
> Variable to be passed to other functions b) in a Database (MySQL) too . The content 
> is html-code (with
> tags and style code (css)).
> The point is that I'm making myself a kind
> of CMS, and I want to edit a page, enter html code, store it in the
> database and then display it as content on a page. So, in the edit
> menu, I have to be able to see the html tags, but on the target page,
> the html entities have to be translated by the browser... and all that
> has to be storable in MySQL...
> 
> How do I do that the best...?!?
> addslahes, stripslahses, htmlentities, html_entity_decode are the only
> functions I have found, which seem to be really useful. Are there
> others I could need, or do you think I'm fine with that?
> 
> Thanx for answering
> 
> SvT
> 
> -- 
> Who is the ennemy?

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

Reply via email to