php-db | 2001072
Date: 07/20/01
- Next message: Barry Prentiss: "[PHP-DB] 'ORA-12203: TNS:unable to connect to destination' error"
- Previous message: chickey <email protected>: "[PHP-DB] Best foot forward?"
- In reply to: Markus Wagner: "[PHP-DB] special characters in odbc-queries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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>
- Next message: Barry Prentiss: "[PHP-DB] 'ORA-12203: TNS:unable to connect to destination' error"
- Previous message: chickey <email protected>: "[PHP-DB] Best foot forward?"
- In reply to: Markus Wagner: "[PHP-DB] special characters in odbc-queries"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

