04-01-2015, 12:11 PM
I an very new to codeigniter. And i successfully build a small CMS witch I am using for the base foundation for the website. You can find the working site here:
http://clanguild.bellswebdesign.com/
and the admin is here:
http://clanguild.bellswebdesign.com/admin/user/login
with a user name: [email protected] and password: pass
Now for my problem. I need help with the add recipe php page. That one page puts info into 4 tables:
recipes database
![[Image: recipes.png]](http://bellswebdesign.com/images/mgr/recipes.png)
ingredients database
![[Image: ingredients.png]](http://bellswebdesign.com/images/mgr/ingredients.png)
directions database
![[Image: directions.png]](http://bellswebdesign.com/images/mgr/directions.png)
measurements database
![[Image: measurements.png]](http://bellswebdesign.com/images/mgr/measurements.png)
and my database model
![[Image: database_model.png]](http://bellswebdesign.com/images/mgr/database_model.png)
Now I have put thinking about this long time and I can not get it. The problem I will run into later is. Every user will have its own database with only there recipes. I was thinking of putting the user_id on every recipe. Is this way I should do it or is there a better why. Please i may have more problems later to. And this website is my first project and I will have more coming cuz I am trying to build a web company so may have room for more staff but much later. Any help is good. I attach some of my work.
mgr.zip (Size: 14.76 KB / Downloads: 145)
http://clanguild.bellswebdesign.com/
and the admin is here:
http://clanguild.bellswebdesign.com/admin/user/login
with a user name: [email protected] and password: pass
Now for my problem. I need help with the add recipe php page. That one page puts info into 4 tables:
recipes database
![[Image: recipes.png]](http://bellswebdesign.com/images/mgr/recipes.png)
ingredients database
![[Image: ingredients.png]](http://bellswebdesign.com/images/mgr/ingredients.png)
directions database
![[Image: directions.png]](http://bellswebdesign.com/images/mgr/directions.png)
measurements database
![[Image: measurements.png]](http://bellswebdesign.com/images/mgr/measurements.png)
and my database model
![[Image: database_model.png]](http://bellswebdesign.com/images/mgr/database_model.png)
Now I have put thinking about this long time and I can not get it. The problem I will run into later is. Every user will have its own database with only there recipes. I was thinking of putting the user_id on every recipe. Is this way I should do it or is there a better why. Please i may have more problems later to. And this website is my first project and I will have more coming cuz I am trying to build a web company so may have room for more staff but much later. Any help is good. I attach some of my work.
