0
php 클래스에서 연결된 선택 양식 (아약스 호출)에 대한 메소드를 작성했습니다. 이제 firefox, chrome 및 기타 브라우저에서 행이 잘 표시되기 때문에 이상한 문제가 발생했습니다. 즉, 8-9 개의 행이 있지만 "흰색"창만 표시됩니다.IE에서만 행을 표시하지 않는 쿼리
public function ShowCat_2($idca2, $idca1) {
// for edit function
$where = "";
if(isset($idca1)){ $where .= " idcat_1='$idca1'"; }
if(isset($_POST['idcat_1'])) { $where .= " idcat_1='$_POST[idcat_1]'"; }
// query
$this->db->result = $this->db->mysqli->query("SELECT * FROM cat_2 WHERE $where");
$cat_2 = '<option value="0">Select</option>';
while($row = $this->db->result->fetch_assoc()) {
$cat_2 .= '<option value="' . $row['idcat_2'] . '"';
if($idca2 == $row['idcat_2']){ $cat_2 .= ' selected'; } // for edit fun
$cat_2 .= '>' . utf8_encode(ucfirst(strtolower($row['descr']))) . '</option>';
}
return $cat_2;
}
문제점 및 해결 방법을 알려주세요. 감사합니다.
감사합니다. 나는 그 오류를 발견한다. –