leonsuke

Controller

Jan 23rd, 2018
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <?php
  2. public function tips_trick_input() {
  3.         $title = $this->input->post("title");
  4.         $detail = $this->input->post("detail");
  5.  
  6.         $sql = $this->notif->tips_trick_new($title, $detail);
  7.         $sql = $this->notif->tips_trick_new($title, $detail);
  8.         if ($sql) {
  9.             $this->session->set_flashdata('success_input', "<div class='alert alert-success' role='alert'><span class='glyphicon glyphicon-ok'></span><button type='button' class='close' data-dismiss='alert' aria-hidden='true'>&times;</button>". $sql["message"] ."</div>");
  10.         }
  11.     }
Advertisement
Add Comment
Please, Sign In to add comment