Re: Variable question...

Поиск
Список
Период
Сортировка
Искать
От
Chris Smith
Тема
Re: Variable question...
Дата
в 20:49:10
Msg-id
01051010485700.20486@area51.cybersydney.com.au
Ответ на
Variable question... (Christian Marschalek)
Список
Дерево обсуждения
Re: Variable question... Chris Ryan <chris@greatbridge.com>
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
В списке pgsql-php по дате отправления
От: Mitch Vincent
Дата:
Сообщение: Re: Variable question...
От: Christian Marschalek
Дата:
Сообщение: RE: Variable question...
FAQ