• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

#3
https://codeigniter.com/user_guide/libra...=migration
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2018 MyBB Group.