CodeIgniter Forums
Get the value from DropDown list [RESOLVED] - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Model-View-Controller (https://forum.codeigniter.com/forumdisplay.php?fid=10)
+--- Thread: Get the value from DropDown list [RESOLVED] (/showthread.php?tid=66788)

Pages: 1 2


RE: Get the value from DropDown list [RESOLVED] - Fraps900 - 12-07-2016

(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/database/index.html

Thank Wouter60. Works the same and related to Codeigniter Smile