Help with urlencode and rawurlencode

From: "Duncan Adams (DNS)" <duncan(dot)adams(at)vcontractor(dot)co(dot)za>
To: PGSQL <pgsql-php(at)postgresql(dot)org>
Subject: Help with urlencode and rawurlencode
Date: 2002-10-14 15:31:13
Message-ID: 034A824BAA3FBA4CA0CBEF1031A02F3519F1FE@zablv02001.vodacom.corp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Justin Clift 2002-10-14 16:20:42 Re: Help with urlencode and rawurlencode
Previous Message Renzo Disi Ch. 2002-10-12 12:36:15 Re: Animation in PHP