pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Christian Marschalek <cm@chello.at>
To: [PHP] PostgreSQL <pgsql-php@postgresql.org>
Subject: Variable question...
Date: Thu, 10 May 2001 02:34:24 +0200
Message-ID: <000501c0d8e8$f6ab2f00$0200a8c0@server> (raw)

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");

Tia again Chris




view thread (6+ messages)  latest in thread

Message-ID: <000501c0d8e8$f6ab2f00$0200a8c0@server>
Permalink:  ../000501c0d8e8$f6ab2f00$0200a8c0@server/
Also on:    postgresql.org/message-id/000501c0d8e8$f6ab2f00$0200a8c0@server

 · 

reply

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: cm@chello.at
  Subject: Re: Variable question...
  In-Reply-To: <000501c0d8e8$f6ab2f00$0200a8c0@server>
  References: <000501c0d8e8$f6ab2f00$0200a8c0@server>

* 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