adding new table on other new database created - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: adding new table on other new database created (/showthread.php?tid=55973) |
adding new table on other new database created - El Forum - 11-19-2012 [eluser]arie kadarusman[/eluser] Hello guys, I hope you can help me. My problem is all about database. I tried all my best but i give up. Here’s my contrroler code Code: class Cadminlogin extends CI_Controller and i add some code ini tank auth library Code: class Tank_auth then here model. Code: class Users extends CI_Model sorry my english bad, help please... how to do it adding new table to database i new created... thanks before adding new table on other new database created - El Forum - 11-19-2012 [eluser]benton.snyder[/eluser] You can define "database groups" in your application->config->database which allows you to connect to multiple databases. Check out the user guide for examples: http://ellislab.com/codeigniter/user-guide/database/connecting.html adding new table on other new database created - El Forum - 11-19-2012 [eluser]boltsabre[/eluser] Are you trying to create a new database, with a new table, for each person who registers on your site? If so.... WHY? One database, one "users" table, insert a new row for each new member. adding new table on other new database created - El Forum - 11-19-2012 [eluser]arie kadarusman[/eluser] [quote author="benton.snyder" date="1353339539"]You can define "database groups" in your application->config->database which allows you to connect to multiple databases. Check out the user guide for examples: http://ellislab.com/codeigniter/user-guide/database/connecting.html[/quote] i checked that but i must add config new connect manually.. so when i created new database i must config manually again for new connection database.. i want create new database and new table on the database on the same time.. is that how to do it? adding new table on other new database created - El Forum - 11-19-2012 [eluser]arie kadarusman[/eluser] [quote author="boltsabre" date="1353339582"]Are you trying to create a new database, with a new table, for each person who registers on your site? If so.... WHY? One database, one "users" table, insert a new row for each new member.[/quote] no, the database i want create just admin can create , then the table created too but, in my problem database created but the table create on another database not in new database created... |