Re: Variable question...
От | Chris Smith |
---|---|
Тема | Re: Variable question... |
Дата | |
Msg-id | 01051010485700.20486@area51.cybersydney.com.au обсуждение исходный текст |
Ответ на | Variable question... ("Christian Marschalek" <cm@chello.at>) |
Ответы |
RE: Variable question...
Re: Variable question... |
Список | pgsql-php |
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 по дате отправления: