1<?php
2class Crud_model extends CI_Model
3{
4 function saverecords($name,$email,$phone,$city)
5 {
6 $query="INSERT INTO `crud`( `name`, `email`, `phone`, `city`)
7 VALUES ('$name','$email','$phone','$city')";
8 $this->db->query($query);
9 }
10}
11