diff --git a/Apollo/api/application/models/Course_model.php b/Apollo/api/application/models/Course_model.php index 178bd819..fb8b796c 100755 --- a/Apollo/api/application/models/Course_model.php +++ b/Apollo/api/application/models/Course_model.php @@ -52,7 +52,7 @@ class Course_model extends CI_Model { } else{ $this -> db -> where('CourseCode', $arrayDetails['CourseCode']); - $this -> db -> delete('COURSE'); + $this -> db -> delete(COURSE); $result['courseStatus'] = false; $result['message'] = "Something went wrong.please try again"; }