On Wed, Mar 23, 2005 at 12:45:04PM -0700, Charles Curley wrote: > On Wed, Mar 23, 2005 at 12:36:20PM -0700, Michael L Torrie wrote: > > On Wed, 2005-03-23 at 12:18 -0700, Eric Jensen wrote: > > > Wasn't sure if running something like "addslashes" on the string would > > > currupt the data. > > > > I don't think you want to run addslashes. Use the mysl-specific escape > > function. > > mysql_escape_string -- Escapes a string for use in a mysql_query > > http://www.php.net/manual/en/function.mysql-escape-string.php
On second thought, I don't know how well this handles binary data. The advice to ascii armor the encrypted data makes escaping irrelevant. Declare the column as text, which should take care of the line endings in the ascii armored output. -- Charles Curley /"\ ASCII Ribbon Campaign Looking for fine software \ / Respect for open standards and/or writing? X No HTML/RTF in email http://www.charlescurley.com / \ No M$ Word docs in email Key fingerprint = CE5C 6645 A45A 64E4 94C0 809C FFF6 4C48 4ECD DFDB
pgp65MjtyDB49.pgp
Description: PGP signature
.===================================. | This has been a P.L.U.G. mailing. | | Don't Fear the Penguin. | | IRC: #utah at irc.freenode.net | `==================================='
