Welcome Guest, Not a member yet? Register   Sign In
Problem with "results from db_add"
#1

[eluser]Unknown[/eluser]
hi all,
i have 2 functions in controllers
Code:
function Cars(){
$data['result'] = "";
something else ...
$this->load->view('cars');
}

function addCar(){
$this->input->post('car');
......
add it to db and return "Success Added !"

$this->Cars();
i need to print "Success Added !" into Cars();

}
I am trying to add $result in $this->Cars($result);
and edit function Cars() to Cars($result) but when i load only Cars() there is missing argument




Theme © iAndrew 2016 - Forum software by © MyBB