Get a single value from a a database ?

#2
[eluser]n0xie[/eluser]
Code:
$this->db->select('product_name');
  $this->db->where("product_id", "10");
  $this->db->limit(1);
  $query = $this->db->get('products');
  
  echo $query->row()->product_name;


Messages In This Thread
Get a single value from a a database ? - by El Forum - 02-01-2010, 07:44 AM
Get a single value from a a database ? - by El Forum - 02-01-2010, 07:49 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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