From: Sharmad Naik <sharmad@goatelecom.com>
To: ryanne cruz <ryanne.cruz@up.edu.ph>
Cc: pgsql-php@postgresql.org
Subject: Re: pg_result
Date: Fri, 24 Jan 2003 22:38:34 +0530
Message-ID: <20030124223834.377cd8fb.sharmad@goatelecom.com> (raw)
In-Reply-To: <1043216312.3e2e37b8b1d11@mail.up.edu.ph>
References: <1043216312.3e2e37b8b1d11@mail.up.edu.ph>
Hi,
PLease look at the query.The syntax is
"SELECT attribute_name[,attr2,..] FROM tables WHERE attribute =[LIKE,IN,..] ETC..
It looks in ur query that province is an attribute as well as a query.
Reagrds
Sharmad
On Wed, 22 Jan 2003 14:18:32 +0800
ryanne cruz <ryanne.cruz@up.edu.ph> wrote:
>
> hi list.
>
> this is my script:
>
> $query7="select provinceid from province where province like '$tablename1';";
> $result7=pg_exec($conn,$query7);
> if(!$result7){
> .
> .
> .}
> else {
> .
> .
> .
> }
>
> my problem is when the value of the variable $tablename1 is not on the table
> province, it doesn't go to the if statements. what am i doing wrong?
>
> thanks!
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: sharmad@goatelecom.com, ryanne.cruz@up.edu.ph
Subject: Re: pg_result
In-Reply-To: <20030124223834.377cd8fb.sharmad@goatelecom.com>
References: <1043216312.3e2e37b8b1d11@mail.up.edu.ph> <20030124223834.377cd8fb.sharmad@goatelecom.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox