[0] empty sno
2024-12-18 14:00:46
/home_new/daprskr/web/module/Component/Board/Press.php (300 line)
0289 $data = []; |
0290 $appendWhere[] = "b.isDelete = 'n'"; |
0291 $rows = $this->select('select', $search, $appendWhere, 'all'); |
0292 $data['list'] = $rows; |
0293 return $data['list']; |
0294 } |
0295 |
0296 |
0297 public function selectOne($sno) |
0298 { |
0299 if (!$sno) { |
0300 throw new \Exception('empty sno'); |
0301 } |
0302 $this->set('sno', $sno); |
0303 |
0304 $arrBind = []; |
0305 $query = "SELECT b.* FROM " . DB_BOARD_PRESS . " as b "; |
0306 $query .= " WHERE b.sno = ? and isDelete ='n'"; |
0307 |
0308 |
0309 $this->db->bind_param_push($arrBind, 'i', $sno); |
0310 $row = $this->db->query_fetch($query, $arrBind)[0]; |
0311 unset($arrBind); |
0312 if ($row['isDelete'] == 'y') { |