[0] empty sno
2025-01-15 18:32:16
/home_new/daprskr/web/module/Component/Board/Academic.php (326 line)
0315 $data = []; |
0316 $appendWhere[] = "b.isDelete = 'n'"; |
0317 $rows = $this->select('select', $search, $appendWhere, 'all'); |
0318 $data['list'] = $rows; |
0319 return $data['list']; |
0320 } |
0321 |
0322 |
0323 public function selectOne($sno) |
0324 { |
0325 if (!$sno) { |
0326 throw new \Exception('empty sno'); |
0327 } |
0328 $this->set('sno', $sno); |
0329 |
0330 $arrBind = []; |
0331 $query = "SELECT b.* FROM " . DB_BOARD_ACADEMIC . " as b "; |
0332 $query .= " WHERE b.sno = ? and isDelete ='n'"; |
0333 |
0334 |
0335 $this->db->bind_param_push($arrBind, 'i', $sno); |
0336 $row = $this->db->query_fetch($query, $arrBind)[0]; |
0337 unset($arrBind); |
0338 if ($row['isDelete'] == 'y') { |