google_forms/application/models/Frontend_model.php

15 lines
339 B
PHP
Raw Normal View History

2024-07-16 12:29:59 +00:00
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Frontend_model extends CI_Model {
public function getforms(){
$query = $this->db->get("forms");
return $query->result();
}
public function deleteForm($id){
return $this->db->delete('forms', ['id' => $id]);
}
}