Пример #1
1
 public function create($_post)
 {
     $prepare = $this->prepare($_post);
     $prepare['idskills'] = parent::search($_post, 'a_skill_list');
     // echo "<pre>";
     // print_r($prepare);
     $this->id = parent::create($prepare, $this->table);
 }
Пример #2
0
 public function create($_post)
 {
     if (self::check($_post) == false) {
         $this->id = parent::create($_post, $this->table);
     } else {
         return;
     }
 }
Пример #3
0
 public function create($_post)
 {
     $_post['userid'] = $this->user_id;
     $this->prepare($_post);
     $this->id = parent::create($_post, $this->table);
     if (!isset($this->id)) {
         throw new Exception("Database Error [{$this->dbcon->errno}] {$this->dbcon->error} <br><br> SQL: {$sql}", 1);
     } else {
         return $this->id;
     }
 }
Пример #4
0
 public function create($_post)
 {
     $this->prepare($_post);
     $this->id = parent::create($_post, $this->table);
     return $this->id;
 }
Пример #5
0
 public function create($_post)
 {
     $data = $this->prepare($_post);
     $this->id = parent::create($data, $this->table);
 }
Пример #6
0
 public function create($_post)
 {
     // $this->prepare($_post);
     $this->id = parent::create($_post, 'a_education');
     return $this->id;
 }