project method public function project id title title2 return_result q

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
/* project method */
public function project($id, $title, $title2)
{
$return_result = 0;
$query_string = "SELECT * FROM emp_2 WHERE `title` = '".$this->CI->db->escape_str($title)."'";
$query_result = $this->CI->db->query($query_string);
$this->CI->db->insert('project', $title);
$return_result = $this->CI->db->insert_id();
return $return_result;
}