How to insert corporate details into database |
Firstly, I dont use a database very much but do find it necessary for storing members info & for logging in.
Now, I want to store corporate info & again for the corporate personnel to log in, just the same as we do in real life. I have a Controller & view that creates folders for each corporation, and later intending the same for each country, and that works good. I just want to store the Corporates Name, Password, and Country into the database, and then be able to log in, just the same as a member logs in. I have created a separate table, tbl_corporates, in the database with 5 columns (1) corporate_id (2) date_ registered (3) corporate_name (4) pass_word (5) country_territory I guess the first 2 can be handled within the database. I have created models for each country, the first being Afghanistancorporate_model. The coding within that model is as follows; PHP Code: <?php Within the Controller I have the following; PHP Code: $this->load->model('Afghanistancorporate_model', 'afghanistancorporate_model'); Ive tried putting the defined variables into the Model but that doesnt work. Ive also tried the $data = array in the Controller but that doesnt work. I have searched many sites to find what Im doing wrong, but to no avail. Can anybody help? |
Welcome Guest, Not a member yet? Register Sign In |