Re: RE : [PEAR] re: DataObjects and postgresql
| From: | Alan Knowles | Date: | Tue, 24 Sep 2002 13:42:20 +0000 |
| Subject: | Re: RE : [PEAR] re: DataObjects and postgresql | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-2374@lists.php.net to get a copy of this message | ||
so if you write a script
<?
require_once 'DB.php';
$a = db::connect('pgsql://mylogin:mypass@localhost/nci');
print_r($a);
?>
you dont get an db_error object? - this should be what db_dataobjects is trying to do..
regards
Alan
xav wrote:
Hi, and thanks for your reply. If I set debug=10 in my nci.ini file , I obtain that: CREATING FOR pgsql://mylogin:mypass@localhost/nci <PRE><B>CONNECT</B> NEW CONNECTION</PRE> <PRE><B>CONNECT</B> pgsql://mylogin:mypass@localhost/nci 398435f73244705df4336be93b8f1992</PRE> <PRE><B>CONNECT</B> a:1:{s:32:"398435f73244705df4336be93b8f1992";O:8:"db_error":7:{s:20:"err or_message_prefix";s:0:"";s:4:"mode";i:1;s:5:"level";i:1024;s:4:"code";i :-25;s:7:"message";s:26:"DB Error: no such database";s:8:"userinfo";s:32:"pgsql:// mylogin:mypass @localhost/nci";s:8:"callback";N;}}</PRE> DB Error: no such database It doesn't make sense to me... I hope it 'talks' more to you :p -- Xav