Posted by Geoff Berrow on 01/12/07 16:27
Message-ID: <10d86$45a7b5e7$8259c69c$16834@news1.tudelft.nl> from Rik
contained the following:
>> What would be the best advice for storing HTML data in to a MySQL
>> database?
>
>As HTML data, unedited.
>Just use mysql_real_escape_string() on it before putting it in the INSERT
>query.
I had a devil of a job recently trying to store an html file that had
loads of auto generated JavaScript in it (a crossword puzzle). My
quick and dirty solution was to save it as a file and then simply store
a reference to it. This is fine if you don't want to do any data
processing on the content.
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
[Back to original message]
|