Re: [GENERAL] ' syntax (using PHP3)

From: "Natalya S(dot) Makushina" <mak(at)rtsoft(dot)msk(dot)ru>
To: "'amarof'" <amarof(at)marwan(dot)ac(dot)ma>, "pgsql-general(at)postgreSQL(dot)org" <pgsql-general(at)postgreSQL(dot)org>
Subject: Re: [GENERAL] ' syntax (using PHP3)
Date: 1999-06-02 07:40:20
Message-ID: 01BEACEC.B2000E40@makushina.rtsoft.msk.ru
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

You must write
select * from table where field like '$txt';
The symbol ' must be around the variable.

Sorry for bad English.

Good luck,
Natalya S. Makushina
Webmaster RTSoft Co.
Telephone: (095)742-68-28
E-mail: mak(at)rtsoft(dot)msk(dot)ru
WWW: http://www.rtsoft.ru

>From : amarof [SMTP:amarof(at)marwan(dot)ac(dot)ma]
Date : 5 июня 1999 г. 19:45
To : pgsql-general(at)postgreSQL(dot)org
Subject : [GENERAL] ' syntax (using PHP3)

i got your answers about the syntax, it works with the strings, but when

etat takes a variable value, it gives a parser error. example : select *

from table where field like $txt
the error occurs when txt takes the value (doctortat d'etat).
thanks

Browse pgsql-general by date

  From Date Subject
Next Message Anatoly K. Lasareff 1999-06-02 10:04:59 Re: [GENERAL] Text function problem
Previous Message songraeCHO 1999-06-02 01:37:10 How to use korean in Postgres6.4.2