adding new table on other new database created |
[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
[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-gui...cting.html
[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.
[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-gui...cting.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?
[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... |
Welcome Guest, Not a member yet? Register Sign In |