Variable question... - Mailing list pgsql-php

From Christian Marschalek
Subject Variable question...
Date
Msg-id 000501c0d8e8$f6ab2f00$0200a8c0@server
Whole thread Raw
Responses Re: Variable question...  (Chris Smith <csmith@squiz.net>)
List 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


pgsql-php by date:

Previous
From: "Mitch Vincent"
Date:
Subject: Re: RE: Sessions without cookies
Next
From: "Mitch Vincent"
Date:
Subject: Re: Variable question...