• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to join tables to display the author of blog entry

#4
[eluser]crumpet[/eluser]
i like to add
$this->db->join('authors', 'authors.id = entries.author_id', 'inner');
so that if the user account gets deleted then the blog entry will not appear
this is a matter of taste however - maybe you want the blog entry to still appear if the user account is deleted. if so you will need to have error checking so you dont get Undefined first_name error


Messages In This Thread
Trying to join tables to display the author of blog entry - by El Forum - 12-11-2008, 11:03 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.