Help with urlencode and rawurlencode - Mailing list pgsql-php

From Duncan Adams (DNS)
Subject Help with urlencode and rawurlencode
Date
Msg-id 034A824BAA3FBA4CA0CBEF1031A02F3519F1FE@zablv02001.vodacom.corp
Whole thread Raw
List 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 by date:

Previous
From: "Renzo Disi Ch."
Date:
Subject: Re: Animation in PHP
Next
From: Justin Clift
Date:
Subject: Re: Help with urlencode and rawurlencode