hi... I am doin my project in PHP with PostgreSQL as backend... Both r very new to me.... My OS is LINUX I am trying to connect to the database bt its not getin connected... By using "su posgres" command i hav created user "root" and database "sample" By using "psql -U root sample" command i hav created table "login" and inserted 3 data's... now through code using PHP i am trying to insert the data but connection is not getin established.. the code to connect to the datadase is :-