Welcome Guest, Not a member yet? Register   Sign In
auto database generate
#1

how can i create a code in code igniter for auto database create.???????????
Reply
#2

You can do it like this with all MySQL database commands.

Code:
$sql   = "CREATE DATABASE YourDatabaseName";
$query = $this->db->query($sql);
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
Reply
#4

He was asking how to create the database which is different then a migration
that creates tables.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB