[PHP] Stripslashes question.
Hi all, What will be the way to convert binary information into a string which will get into an SQL query for MySQL? I tried stripcslashes but I got stucked with it. Any help? Thanks in advance. Sean C. McCarthy SCI, S.L. (www.sci-spain.com) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Stripslashes question.
try addslashes instead. You might have better luck. - Original Message - From: Sean C. McCarthy [EMAIL PROTECTED] To: PHP General List [EMAIL PROTECTED] Sent: Monday, September 10, 2001 2:42 PM Subject: [PHP] Stripslashes question. Hi all, What will be the way to convert binary information into a string which will get into an SQL query for MySQL? I tried stripcslashes but I got stucked with it. Any help? Thanks in advance. Sean C. McCarthy SCI, S.L. (www.sci-spain.com) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Stripslashes question.
So sprach »Sean C. McCarthy« am 2001-09-10 um 22:42:51 +0100 : Hi all, What will be the way to convert binary information into a string which will get into an SQL query for MySQL? I tried stripcslashes but I got stucked with it. Any help? Wrong direction :) addslashes($binary) will enable you to put it in a SQL query. Alexander Skwar -- How to quote: http://learn.to/quote (german) http://quote.6x.to (english) Homepage: http://www.digitalprojects.com | http://www.iso-top.de iso-top.de - Die günstige Art an Linux Distributionen zu kommen Uptime: 16 hours 41 minutes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Stripslashes question.
Hi, Didn't help. I tried it before that is why I tried with addcslashes. What I have done so far is : I have cmp'ed the file before adding slashes and after and it seems that it is eating up the \. Like Pñ\#as renders as Pñ#as after stripingslashes but in the DB is Pñ\\#as. As far as I know it should have converted back from \\ to a single \. By the way I am running 4.0.3pl1 Linux Thanks. Sean C. McCarthy SCI, S.L. (www.sci-spain.com) Jason Bell wrote: try addslashes instead. You might have better luck. - Original Message - From: Sean C. McCarthy [EMAIL PROTECTED] To: PHP General List [EMAIL PROTECTED] Sent: Monday, September 10, 2001 2:42 PM Subject: [PHP] Stripslashes question. Hi all, What will be the way to convert binary information into a string which will get into an SQL query for MySQL? I tried stripcslashes but I got stucked with it. Any help? Thanks in advance. Sean C. McCarthy SCI, S.L. (www.sci-spain.com) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]