Welcome Guest, Not a member yet? Register   Sign In
Is CI's blog tutorial is good ?
#1

[eluser]Diti[/eluser]
Hi everybody Wink !

I'm building a little blog based on CI and I'm basing on the screencast for the ideas.
But I wonder if the solution used in this tutorial — a comment table with an entry_id — is right or if there is a better way to make the comments.

I documented myself on LEFT JOIN (I don't know how it's called) and… didn't understood at all.
So, is there a better way ?

Thanks to all the CI community Smile !
My actual blog.
#2

[eluser]Diti[/eluser]
I think this page can help me, see the example of $this->db->join(); function.
Is this the good way ?
#3

[eluser]alexsancho[/eluser]
Just an example:

Code:
$this->db->select('e.*,c.*');
$this->db->where('e.entry_id',$id);
$this->db->join('ci_comments c','c.entry_id=e.entry_id');
$this->db->get('ci_entry e');
#4

[eluser]Diti[/eluser]
Errr… I don't really understand how does it works and how to implement it :p
Thank you fort your post.




Theme © iAndrew 2016 - Forum software by © MyBB