[0] empty sno
2025-01-08 00:53:35
/home_new/daprskr/web/module/Component/Board/Notice.php (347 line)
0336 $data = []; |
0337 $appendWhere[] = "b.isDelete = 'n'"; |
0338 $rows = $this->select('select', $search, $appendWhere, 'all'); |
0339 $data['list'] = $rows; |
0340 return $data['list']; |
0341 } |
0342 |
0343 |
0344 public function selectOne($sno) |
0345 { |
0346 if (!$sno) { |
0347 throw new \Exception('empty sno'); |
0348 } |
0349 $this->set('sno', $sno); |
0350 |
0351 $arrBind = []; |
0352 $query = "SELECT b.* FROM " . DB_BOARD_NOTICE . " as b "; |
0353 $query .= " WHERE b.sno = ? and isDelete ='n'"; |
0354 |
0355 |
0356 $this->db->bind_param_push($arrBind, 'i', $sno); |
0357 $row = $this->db->query_fetch($query, $arrBind)[0]; |
0358 |
0359 |