RE: [PHP] special characters with perl,mysql,php
| From: | ..s.c.o.t.t.. | Date: | Sat, 24 Feb 2001 08:09:30 +0000 |
| Subject: | RE: [PHP] special characters with perl,mysql,php | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-41433@lists.php.net to get a copy of this message | ||
i use a regexp to slash-out single quotes for
inclusion into an SQL query:
// quote a value to make it appropriate for inclusion in an SQL string
function db_quote($value) {
return ereg_replace("'","\\'",$value);
}
> -----Original Message-----
> From: Mitchell Hagerty [mailto:mitchell_hagerty@und.nodak.edu]
> Sent: Friday, February 23, 2001 18:54
> To: php-general@lists.php.net
> Subject: [PHP] special characters with perl,mysql,php
>
>
> Hey All,
>
> What would be a good method for inserting data into a blob field
> that contained special characters using perl then retrieving that
> data with php?
>
> URI::Escape has worked well with perl but now that php has
> gotten into the picture I need a new method.
>
> any suggestions?
>
> tks
> mitch
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>