RE: [PHP] Storing HTML string in database
| From: | Aaron Axelsen | Date: | Fri, 11 Jul 2003 01:29:18 +0000 |
| Subject: | RE: [PHP] Storing HTML string in database | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154817@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I had forgotten about that, thanks alot
- ---
Aaron Axelsen
AIM: AAAK2
Email: axelseaa@amadmax.com
Want reliable web hosting at affordable prices?
www.modevia.com
Web Dev/Design Community/Zine
www.developercube.com
- -----Original Message-----
From: Jacob C [mailto:jacob@keystreams.com]
Sent: Thursday, July 10, 2003 8:18 PM
To: Aaron Axelsen
Subject: Re: [PHP] Storing HTML string in database
Have a look at:
http://www.php.net/addslashes
Quoting Aaron Axelsen <axelseaa@amadmax.com>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I have a php script set up for a user to upload a word document,
> which is then coverted to html form, which I would then lke to
> store in a database.
>
> Howver, when I run the following command:
>
> INSERT into sermons (data) VALUE ('$output');
>
> It failes to work, because the $output strings contains "", which
> messes things up. Is there some way that this can be ignored while
> entering into the databse?
>
> Or am I better of replace all the "" with ''?
>
> Thanks for the assistance.
>
> - ---
> Aaron Axelsen
> AIM: AAAK2
> Email: axelseaa@amadmax.com
>
> Want reliable web hosting at affordable prices? www.modevia.com
>
> Web Dev/Design Community/Zine
> www.developercube.com
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: PGPfreeware 7.0.3 for non-commercial use
> <http://www.pgp.com>
>
> iQA/AwUBPw4PI7rnDjSLw9ADEQLL5QCg6rxSs/roIiGyxC6nN3XNiuONg00AoK/T
> PSAAAbM+O7+e6iVNMMnpK5AC
> =phqJ
> -----END PGP SIGNATURE-----
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
- --
"If there's a World War III, World War IV will be fought with sticks
and
stones."
-----BEGIN PGP SIGNATURE-----
Version: PGPfreeware 7.0.3 for non-commercial use <http://www.pgp.com>
iQA/AwUBPw4S7rrnDjSLw9ADEQIQXACfYZfZ7CAp0q2tbwC0cpZQthcfS3wAn2XM
0vltmGXLCHmFaUFAx5paU8ya
=TYDm
-----END PGP SIGNATURE-----