note 77201 added to function.pg-connect
| From: | xourge at osu1 dot php dot net | Date: | Mon, 20 Aug 2007 04:17:39 +0000 |
| Subject: | note 77201 added to function.pg-connect | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-129629@lists.php.net to get a copy of this message | ||
remember that when you use a blank password there will be an error because of:
password= dbname= (...)
to fix this problem use '' in your $options variable
example:
$options = " host='localhost' port='5432' user='postgres'
password='' dbname='test' ";
pg_connect($options);
*** careful: I used double ' after password=, not "
----
Server IP: 69.147.83.197
Probable Submitter: 190.41.6.138
----
Manual Page -- http://www.php.net/manual/en/function.pg-connect.php
Edit -- https://master.php.net/note/edit/77201
Del: integrated -- https://master.php.net/note/delete/77201/integrated
Del: useless -- https://master.php.net/note/delete/77201/useless
Del: bad code -- https://master.php.net/note/delete/77201/bad+code
Del: spam -- https://master.php.net/note/delete/77201/spam
Del: non-english -- https://master.php.net/note/delete/77201/non-english
Del: in docs -- https://master.php.net/note/delete/77201/in+docs
Del: other reasons-- https://master.php.net/note/delete/77201
Reject -- https://master.php.net/note/reject/77201
Search -- https://master.php.net/manage/user-notes.php