Welcome Guest, Not a member yet? Register   Sign In
Get the value from DropDown list [RESOLVED]
#11

(12-05-2016, 11:39 PM)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




Theme © iAndrew 2016 - Forum software by © MyBB