• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get the value from DropDown list [RESOLVED]

#11
(12-06-2016, 12:39 AM)Wouter60 Wrote: The solution you've found, has nothing to do with CodeIgniter.
If you set up CI correctly, you can use the Query Builder to make it a lot easier:

PHP Code:
$sum1 $this->input->get('id');
$this->db->sum('estimated_hours','value_sum');
$this->db->where('milestone_id'$sum1);
$sum $this->db->get()->row()->value_sum

$this->db is the database connection CodeIgniter is using.
Please read the Database Reference: http://www.codeigniter.com/userguide3/da...index.html

Thank Wouter60. Works the same and related to Codeigniter Smile
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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