Re: special characters in odbc-queries
| From: | Artur Correia | Date: | Fri, 20 Jul 2001 13:44:58 +0000 |
| Subject: | Re: special characters in odbc-queries | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-10602@lists.php.net to get a copy of this message | ||
Hey
I'm kinda rookie here, but i rekon you'd have to double escape the
escape char like:
'select * from $table where primary-key=\'1\\' '
and maybe replace the single quotes ' ' with double quotes " "
I couldn't test this because I got my web/php server down.
Markus Wagner wrote:
> Hi there,
>
> can anyone tell me, how I have to handle special characters in an
> odbc-query?
> for example: 'select * from $table where primary-key=\'1\' ' doesn't
> work because of the dash in primary-key
>
> Thx
>
> Kobi