From: Chris Smith <csmith@squiz.net>
To: Christian Marschalek <cm@chello.at>
To: [PHP] PostgreSQL <pgsql-php@postgresql.org>
Subject: Re: Variable question...
Date: Thu, 10 May 2001 10:48:57 +1000
Message-ID: <01051010485700.20486@area51.cybersydney.com.au> (raw)
In-Reply-To: <000501c0d8e8$f6ab2f00$0200a8c0@server>
References: <000501c0d8e8$f6ab2f00$0200a8c0@server>
Hey,
It might not be translating the array contents properly (because of the
quotes inside the $HTTP_SESSION_VARS? Not sure)...
Try -
$result = pg_exec($c1, "SELECT o_plz FROM ort_tabelle WHERE o_plz =
".$HTTP_SESSION_VARS['user_tabelleXu_o_plz']);
which basically appends the session variable onto the end of the query..
> Can anyone please tell me why this does not work:
>
> $result = pg_exec($c1,"SELECT o_plz FROM ort_tabelle WHERE o_plz =
> $HTTP_SESSION_VARS['user_tabelleXu_o_plz']");
>
> And I have to do the following instead?
>
> $plz = $HTTP_SESSION_VARS['user_tabelleXu_o_plz'];
> $result = query_trans($c1, "SELECT o_plz FROM ort_tabelle WHERE o_plz =
> $plz");
--
Chris Smith
http://www.squiz.net
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: csmith@squiz.net, cm@chello.at
Subject: Re: Variable question...
In-Reply-To: <01051010485700.20486@area51.cybersydney.com.au>
References: <000501c0d8e8$f6ab2f00$0200a8c0@server> <01051010485700.20486@area51.cybersydney.com.au>
* 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