Welcome Guest, Not a member yet? Register   Sign In
A PHP Error encountered dount know what it means
#1

[eluser]ede196620[/eluser]
Hi i have a check box delete function in my project where when a box is checked and the delete button is clicked it deletes the data but i am getting an error and i do not know what it means can someone explain what it means here is the error :

Code:
A PHP Error was encountered

Severity: Notice

Message: Undefined property: Result_controller::$result_model

Filename: controllers/result_controller.php

Line Number: 28

here is the line of code that the error is thrown at:

Code:
$this->result_model->delete_check($data[$i]);

i tried to Google for help but nothing useful came up.
#2

[eluser]rwestergren[/eluser]
This means the result_model property doesn't exist yet, likely because it hasn't been loaded yet. Try this before the line you listed:

Code:
$this->load->model('result_model');




Theme © iAndrew 2016 - Forum software by © MyBB