Welcome Guest, Not a member yet? Register   Sign In
Creating New Databases and Tables
#1

[eluser]BrandonDurham[/eluser]
I'm trying to create a new database on the fly and drop a couple of tables into it and I'm having some problems. CI doesn't see to have a way to add tables to a newly-created database via its CI Database functions. I can easily create the new database with:
Code:
$this->dbutil->create_database($db);

But I have no idea how to add tables to that newly-created database. I saw in this thread where Shadowhand mentions using str_replace, but I'm not sure what they mean.

Suggestions? I appreciate any help.

Thank you.


Messages In This Thread
Creating New Databases and Tables - by El Forum - 07-10-2007, 09:30 AM
Creating New Databases and Tables - by El Forum - 07-10-2007, 10:42 AM
Creating New Databases and Tables - by El Forum - 07-10-2007, 02:18 PM
Creating New Databases and Tables - by El Forum - 07-11-2007, 03:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB