Welcome Guest, Not a member yet? Register   Sign In
Pass data from view to controller
#6

If $id works, please check your Model then

       
PHP Code:
public function get_vehicle_by_id($id) {
$query $this->db->select('*')
->
from('vehicles')
->
where('id_vehicle'$id)
->
get()
->
row();

return 
$query;



If you use it in your way $variable['data'], you will probably have this error: 



PHP Code:
Cannot use object of type stdClass as array 
Reply


Messages In This Thread
RE: Pass data from view to controller - by demyr - 09-09-2019, 11:23 AM
RE: Pass data from view to controller - by demyr - 09-11-2019, 06:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB