relational DB |
[eluser]matches[/eluser]
Can someone point me to a good relational DB example using codeigniter? I have a blog table and a blog_categories table related to it. I'm just not sure how to display each blog entry with it's related category. Thanks
[eluser]CroNiX[/eluser]
http://ellislab.com/codeigniter/user-gui...ecord.html Check out the $this->db->join() section and example. Or a simple one for you... BLOG ---- -id -title -category_id CATEGORIES ---------- -id -name Code: $result = $this->db would give you an array of all blog titles along with its category name. |
Welcome Guest, Not a member yet? Register Sign In |