<?php <br mode="hold" /?>class System_model extends Model// this is the model class that all query statement are excecuted { function insertNewNationality($nationality) //function to add new nationality to the cvdb { //note: cvdb is the name of the database $data=array('nationality'=>$nationality);//column name in the nationality_ids table $this->db->insert('nationality_ids',$data);//query statement to insert value to nationality_ids table the cvdb } ?>
A Database Error Occurred Error Number:INSERT INTO "gender_ids" ("gender") VALUES ('male')
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)