From: | Keary Suska <hierophant(at)pcisys(dot)net> |
---|---|
To: | Postgres-PHP <pgsql-php(at)postgresql(dot)org> |
Subject: | Re: UPDATE - Changing Password |
Date: | 2004-04-18 17:35:08 |
Message-ID: | BCA8186C.FC35%hierophant@pcisys.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-php |
on 4/18/04 3:23 AM, yazkedoo(at)hotmail(dot)com purportedly said:
> Fatal error: Call to undefined function: pg_affected_rows() in
> /home/webpages/yamkedoo/Tests/chpw1.php on line 55
This means that you are using a PHP version < 4.2.0 . Use pg_cmdtuples()
instead.
> if(pg_affected_rows($result)!=1)
> {
> print "Update Failed\n";
> exit;
> }
>
> as this is where the error is, then got "Update Successful", but the
> password had not been updated.
In this case, this just means that the query is either failing or not being
committed. 1) verify that the query should execute successfully--i.e. have
your script output the $query value and then use that in the command line
interface; 2) is the query executing in a transaction? There may be server
configurations forcing the issue. To make sure, send "COMMIT" before closing
the Db connection or ending the script. If you get a "no transaction" error,
then this isn't the problem.
Best regards,
Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"
From | Date | Subject | |
---|---|---|---|
Next Message | Robby Russell | 2004-04-19 14:25:12 | Re: UPDATE - Changing Password |
Previous Message | Yasmine Kedoo | 2004-04-18 09:23:10 | Re: UPDATE - Changing Password |