For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > December 2007 > MDB2: connect to db host with out knowing the db









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author MDB2: connect to db host with out knowing the db
Nial Muecke

2007-12-17, 4:15 am

Hi,

I am hoping that someone can help me?

What i want to do is connect to a database host where I can no be sure that
there is a database and then create a new database.

What would be good, would be if i could create a new MBD2 connection and
pass an option to it that says "if db not exist then create db" which would
then go and create the db and return the connection.

Any help would be most appreciated, even if it to say that it cant be done.


Thanks.


Nial

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com