For Programmers: Free Programming Magazines  


Home > Archive > PHP Pear > November 2004 > mdb2 question









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 question
Atu

2004-11-26, 9:02 am

Hi,
Is there an other way to create databases and tables else than through the
function "updateDatabase" of the class "MDB2_Tools_Manager".

I saw in the class "MDB2_Driver_Manager_Common" functions as
"createDatabase" or "createTable" but they are not accessible through the
Tools/Manager class. How is it possible to use them?

Thanks for a reply,
atu
Lukas Smith

2004-11-26, 9:02 am

Atu wrote:
> Hi,
> Is there an other way to create databases and tables else than through
> the function "updateDatabase" of the class "MDB2_Tools_Manager".
>
> I saw in the class "MDB2_Driver_Manager_Common" functions as
> "createDatabase" or "createTable" but they are not accessible through
> the Tools/Manager class. How is it possible to use them?


$mdb2 =& MDB2::connect($dsn);
$mdb2->loadModule('mamager');
$mdb2->createDatabase();
$mdb2->createTable();

regards,
Lukas
Sponsored Links







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

Copyright 2008 codecomments.com