Dbforge failes: Field information is required |
[eluser]murphy2006[/eluser]
Hello, I am trying to create a table using the dbforge. I am using the below code but that only renders in the error: Field information is required. Code: $this->load->dbforge(); Does anyone know what the problem is? I can run all sorts of DB queries so I guess the database driver is already running (or is there anything I need to setup). Thanks!
[eluser]Seppo[/eluser]
The problem is that the table has not fields. You should add them before create the table. For example Code: $fields = array( More info: http://ellislab.com/codeigniter/user-gui...eate_table
[eluser]murphy2006[/eluser]
Wow, thanks for the quick reply! Your solution worked perfectly fine! Have a nice day! |
Welcome Guest, Not a member yet? Register Sign In |