Welcome Guest, Not a member yet? Register   Sign In
Trying to understand how to echo from array
#1

Hi there,

I am having a lot of trouble getting my head around echoing out from an array.

I have this in one of my models

PHP Code:
public function get_social() {
 
      $this->db->select('*');
 
      $this->db->from('social');
 
      $query $this->db->get();
 
      return $query->result();
 
  

and if I print_r it in my view its pulling everything nicely.  The problem I am having is to try to understand how to echo out the information, I will be making a while and if thing for it but for not I just want to echo one part of it to know that it works.  So say I want to echo out the 'social_name' from it, how do I do it as I cannot seem to find any documentation that tells me.

Thanks,
Reply


Messages In This Thread
Trying to understand how to echo from array - by doomie22 - 02-19-2016, 05:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB