UPDATE - Changing Password

Поиск
Список
Период
Сортировка
От Yasmine Kedoo
Тема UPDATE - Changing Password
Дата
Msg-id BAY14-F64cSN00ktmzm00051479@hotmail.com
обсуждение исходный текст
Ответы Re: UPDATE - Changing Password  (Robby Russell <rrussell@commandprompt.com>)
Список pgsql-php
Hi.

Does anyone know how to use UPDATE with PHP for changing a password? I've
tried the following code:

$query = "UPDATE patperinfo SET trim(password)='$newpw' WHERE
trim(gpid)='$gpidno'";
$result = pg_exec($database, $query);

where new $newpw & $gpidno are the values entered into a form then passed to
the script.

I get the following error:

Warning: PostgreSQL query failed: ERROR: parser: parse error at or near "("
at character 27 in /home/webpages/yamkedoo/Tests/chpw1.php on line 48

where the error is on the line: $result = pg_exec($database, $query);

Thanx :-)

_________________________________________________________________
Express yourself with cool new emoticons http://www.msn.co.uk/specials/myemo


В списке pgsql-php по дате отправления:

Предыдущее
От: Joolz
Дата:
Сообщение: Re: session_is_started()
Следующее
От: Robby Russell
Дата:
Сообщение: Re: UPDATE - Changing Password