on 4/18/04 3:23 AM, yazkedoo@xxxxxxxxxxx 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"