mySQL SELECT 쿼리를 기반으로 값 배열을 가져 오는 드롭 다운 목록이 있습니다. 목록의 모든 값을 선택하는 옵션을 추가하려는 경우를 제외하고는 모든 것이 올바르게 작동합니다. 여기에 어떤 응답을 기대 내 코드 ...PHP 드롭 다운에서 ALL 값 선택
$dataArray = array();
$result = mysql_query("SELECT id, user_name FROM apsc_customers");
while($row = mysql_fetch_assoc($result)) {
$dataArray[$row['id']] = $row['user_name'];
}
및
if($this->customer_id == ""){
$this->arrFilteringFields[_CUSTOMER] = array("table"=>DB_PREFIX."customers", "field"=>"id", "type"=>"dropdownlist", "source"=>$dataArray, "sign"=>"like%", "width"=>"");
}
이다. 들으
질문을 이해할 수 없습니다. – hakre