using input->post in model? |
I'm trying to get values from the user input and use them in a where statement in the model, something like $this->db->where('partName, $this->input->post("partName")');
but I'm pretty sure I cant do that. Is there a way to use those input values in the model like I want to do though? Thanks (08-05-2015, 02:48 PM)alexandervj Wrote: I'm trying to get values from the user input and use them in a where statement in the model, something like $this->db->where('partName, $this->input->post("partName")'); You can do that PHP Code: class Some_model extends CI_Model {
|
Welcome Guest, Not a member yet? Register Sign In |