|From:||Keary Suska <hierophant(at)pcisys(dot)net>|
|Subject:||Re: UPDATE - Changing Password|
|Views:||Raw Message | Whole Thread | Download mbox|
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()
> print "Update Failed\n";
> 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.
"Leveraging Open Source for a better Internet"
|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|