Bruce...... > In my php code, I have.... I always have to fool around with this to get it right, too. One thing that helps is to get it working using psql first, you may get better error messages. Also you should check pg_hba.conf to make sure postgresql is allowing connections from localhost. brew ========================================================================== Strange Brew (brew@xxxxxxxxxxx) Check out my Musician's Online Database Exchange (The MODE Pages) http://www.TheMode.com ==========================================================================