Hi All,
I'm running a script that reads the contents of images and stores them
in a MySQL database. The problem I'm running into is that my server is
seeing \ as escape characters and stripping them out. I assume this
has something to do with Magic Quotes or something of that nature but
I'm
I'm running a script that reads the contents of images and stores them
in a MySQL database. The problem I'm running into is that my server is
seeing \ as escape characters and stripping them out. I assume this
has something to do with Magic Quotes or something of that nature but
I'm not
I'm getting multiple backslashes in data I get out of a mysql database.
Example :
...Here\\\'s the d...
No problem. Except I CANT GET RID OF THEM. I've tried several things:
1. $string = stripslashes($string); - Doesn't do anything
2. $string = ereg_replace(\\, , $string); - Doesn't
on 02/09/02 1:14 PM, Mike Mannakee ([EMAIL PROTECTED]) wrote:
I'm getting multiple backslashes in data I get out of a mysql database.
Example :
...Here\\\'s the d...
No problem. Except I CANT GET RID OF THEM. I've tried several things:
1. $string = stripslashes($string); -
Thanks. I just figured it out myself. I had to change the expression:
$string= ereg_replace([\\]+, , $string);
The above is what worked.
Mike
Justin French [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
on 02/09/02 1:14 PM, Mike Mannakee ([EMAIL
In the following statement, can someone tell me what I would need to escape
out if I were to put it all into a variable (I know the quotes, but that's
all) :
if (!$name){
$error_msg.=Your Name \n;
}
Thanks,
Rob
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
what is a list of all the characters that have to be escaped?
--
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]
nevermind, i found them
--
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]
8 matches
Mail list logo