Skip site navigation (1) Skip section navigation (2)

UPDATE - Changing Password

From: "Yasmine Kedoo" <yazkedoo(at)hotmail(dot)com>
To: pgsql-php(at)postgresql(dot)org
Subject: UPDATE - Changing Password
Date: 2004-04-17 21:28:03
Message-ID: (view raw, whole thread or download thread mbox)
Lists: pgsql-php

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 
$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


pgsql-php by date

Next:From: Robby RussellDate: 2004-04-17 21:40:24
Subject: Re: UPDATE - Changing Password
Previous:From: JoolzDate: 2004-04-13 09:43:02
Subject: Re: session_is_started()

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group