![]() |
Need a little guidance. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Need a little guidance. (/showthread.php?tid=37971) |
Need a little guidance. - El Forum - 01-26-2011 [eluser]Unknown[/eluser] So I'm trying to break my procedural only coding habits. As a first step into OOP I decided to build an application with code igniter. I have Two tables: Table "Books" has: ID | name | author Table "genres" has: ID | book_id | genre My form looks like this: Code: <form> So The user clicks "add" and the query does this: Code: $cats = $_POST['cats']; What I'm confused on is, how do i do this same thing within a model within the code igniter frame work? Need a little guidance. - El Forum - 01-26-2011 [eluser]BrianJM[/eluser] Have you looked at the tutorials? |