Variable question...

From: "Christian Marschalek" <cm(at)chello(dot)at>
To: "[PHP] PostgreSQL" <pgsql-php(at)postgresql(dot)org>
Subject: Variable question...
Date: 2001-05-10 00:34:24
Message-ID: 000501c0d8e8$f6ab2f00$0200a8c0@server
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-php

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

Responses

Browse pgsql-php by date

  From Date Subject
Next Message Mitch Vincent 2001-05-10 00:40:08 Re: Variable question...
Previous Message Christian Marschalek 2001-05-10 00:20:14 User reloads inert script...