PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
DB_DATAOBJECT and MDB2

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database
View previous topic :: View next topic  
Author Message
robertos



Joined: 17 Mar 2007
Posts: 32

PostPosted: Mon Sep 17, 2007 9:16 am    Post subject: DB_DATAOBJECT and MDB2 Reply with quote

I've read that DB_DATAOBJECT is based on DB. The problem is that i'm using MDB2 all over because i've read that it's newer and better. And i don't think it's a good idea to mix MDB2 with DB.

So can DB_DATAOBJECT be used with MDB2? Or will it be possible in the near future?
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Mon Sep 17, 2007 1:10 pm    Post subject: Re: DB_DATAOBJECT and MDB2 Reply with quote

robertos wrote:
So can DB_DATAOBJECT be used with MDB2? Or will it be possible in the near future?


Yes, it is possible. I don't use DBDO myself, but I know some people that use DBDO with MDB2 without problems.
Back to top
View user's profile Send private message
robertos



Joined: 17 Mar 2007
Posts: 32

PostPosted: Mon Sep 17, 2007 1:16 pm    Post subject: Reply with quote

so i should use DBDO with MDB2 just as it would be a DB object?
I was thinking of using like that but I was a little affraid some wierd things could happen...
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Mon Sep 17, 2007 1:23 pm    Post subject: Reply with quote

robertos wrote:
so i should use DBDO with MDB2 just as it would be a DB object?


I guess that DBDO autodetects whether you're using DB or MDB2 (at least that's how I do it in DB_Table), so yes, there should be no difference in usage.
Back to top
View user's profile Send private message
robertos



Joined: 17 Mar 2007
Posts: 32

PostPosted: Mon Sep 17, 2007 1:24 pm    Post subject: Reply with quote

ok, thanks Mark!
Back to top
View user's profile Send private message
harryhobbes



Joined: 18 Jan 2008
Posts: 1

PostPosted: Fri Jan 18, 2008 3:39 am    Post subject: Reply with quote

Just change this value

Code:
db_driver=DB


to this


Code:
db_driver=MDB2
Back to top
View user's profile Send private message
jhfnetboy



Joined: 21 Mar 2008
Posts: 2

PostPosted: Sat Mar 22, 2008 7:25 am    Post subject: when i set the value?before or after connect to the DB? Reply with quote

when i set the value of db_driver?before or after connect to the DB?
thks Smile Very Happy
Back to top
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1053

PostPosted: Sat Mar 22, 2008 11:43 am    Post subject: Re: when i set the value?before or after connect to the DB? Reply with quote

jhfnetboy wrote:
when i set the value of db_driver?before or after connect to the DB?


I still don't know the package (or better: I haven't used it), but it's IMHO obvious that you need to do it before you connect.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software