Help with urlencode and rawurlencode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


[Index of Archives]     [Postgresql General]     [Postgresql Admin]     [PHP Users]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Databases]     [Yosemite Backpacking]     [Postgresql Jobs]

  Powered by Linux