diff --git a/codeigniter/app/Models/ProjekteModel.php b/codeigniter/app/Models/ProjekteModel.php new file mode 100644 index 0000000..e77f932 --- /dev/null +++ b/codeigniter/app/Models/ProjekteModel.php @@ -0,0 +1,30 @@ + $_POST['Projektname'], + 'description' => $_POST['Projektbeschreibung'] + + ); + $projects = $this->db->table('projects'); + //$this->db->insert('projects', $data); + $db->query('INSERT INTO projects(id,description)VALUES("'.$id.'","'.$description.'")'); + } + public function updateProject($id, $description) { + $data = array( + 'id' => $id, + 'description' => $description + ); + $this->db->where('id', $id); + $this->db->update('projects', $data); + } + +} \ No newline at end of file