unescape a string
am 11.03.2006 04:43:22 von Ron Piggott
Is there a way to unescape a string once the command
mysql_real_escape_string($variable);
has been used on it? (This is to display it to the screen, instead of
sending it to the database.)
Ron
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re:
am 11.03.2006 13:52:33 von Miles Thompson
At 11:43 PM 3/10/2006, Ron Piggott (PHP) wrote:
>X-Spam-Scan: YES
>X-Spam-Flag: NO
>X-Spam-Level: /
>X-Spam-Score: 0.0 (0)
>X-Spam-Report: score=0.0 stars= tests=UNPARSEABLE_RELAY=0.001
>X-Virus-Scan: YES
>X-Headers-End: 1FHupX-0000MO-JB
>X-Delivered-To:
>Subject: [PHP-DB] unescape a string
>
>Is there a way to unescape a string once the command
>
>mysql_real_escape_string($variable);
>
>has been used on it? (This is to display it to the screen, instead of
>sending it to the database.)
>
>Ron
Just stash it in another var before running the function.
$var_b4_esx = $variable;
mysql_real_escape_string( $variable );
Curious about why you are doing this for screen display.
Miles
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.375 / Virus Database: 268.2.1/279 - Release Date: 3/10/2006
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: unescape a string
am 11.03.2006 15:11:52 von Ludvig Ericson
http://uk2.php.net/stripslashes
On 3/11/06, Ron Piggott (PHP) wrote:
> Is there a way to unescape a string once the command
>
> mysql_real_escape_string($variable);
>
> has been used on it? (This is to display it to the screen, instead of
> sending it to the database.)
>
> Ron
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: unescape a string
am 11.03.2006 18:35:25 von Micah Stevens
On Saturday 11 March 2006 6:11 am, Ludvig Ericson wrote:
> http://uk2.php.net/stripslashes
>
This would partially unescape it, but mysql_escape_string does more than just
add slashes to a string.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php