Help with urlencode and rawurlencode

Поиск
Список
Период
Сортировка
От Duncan Adams (DNS)
Тема Help with urlencode and rawurlencode
Дата
Msg-id 034A824BAA3FBA4CA0CBEF1031A02F3519F1FE@zablv02001.vodacom.corp
обсуждение исходный текст
Список pgsql-php
Hi all

I have a sql query that needs to be feed to a php page

......host_table.hostname ilike '%omc%' order by......

but when i use urlencode or rawurlencode on it i get the following.

......host_table.hostname ilike \'%omc%\' order by....
                                ^      ^
on the next page.

it needs to be encoded as it is part of an javascript operation.

Why is it doing this and how does one get around it.

Thanx

duncan

В списке pgsql-php по дате отправления:

Предыдущее
От: "Renzo Disi Ch."
Дата:
Сообщение: Re: Animation in PHP
Следующее
От: Justin Clift
Дата:
Сообщение: Re: Help with urlencode and rawurlencode