Justtechjobs.com Find a programming school near you






Online Campus Both


php-db | 2001072

[PHP-DB] Re: special characters in odbc-queries From: Artur Correia (artur.correia <email protected>)
Date: 07/20/01

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

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>