Apply for Zend Framework Certification Training

Codeigniter




$my_date = date("Y-m-d H:i:s");
$datanew = array('tbl_blog_title' => $this->input->post('tbl_blog_title'),
                'tbl_blog_description' => addslashes($this->input->post('tbl_blog_description')),
    		'tbl_blog_meta' => $this->input->post('tbl_blog_meta'),
    		'tbl_blog_url' => $this->input->post('tbl_blog_url'),
    		'tbl_blog_active' => 1,
    		'tbl_blog_category'=>$this->input->post('tbl_blog_category'),
    		'tbl_blog_created_on' => $my_date);
$this->db->insert('tbl_blog',$datanew);

$this->db->where('student_id', $id);
$this->db->delete('students');


$this->db->select();
$this->db->from('question');
$query = $this->db->get();
$result = $query->result();
return $result;

$data = array('question_is_active'=>$question_is_active);
$this->db->where('question_id', $question_id);
$this->db->update('question', $data);                                    

< events Mysql stored procedure >



Ask a question



  • Question:
    {{questionlistdata.blog_question_description}}
    • Answer:
      {{answer.blog_answer_description  }}
    Replay to Question


Back to Top