묻고답하기



현재 외부 php파일로 xe 디비 연결해서 사용중인데요...

 document_srl      

   bbb   

                          

                

 1

 5

 

 

 1

 2

 

 

 2

 3

 

 



$sql = $oDB->_query("select count(*) as bbb from `ji_document_aaa` where document_srl='$document_srl'");
$count = $oDB->_fetch($sql);
$aa_count = $count [bbb];


즉 현재 선택된 document_srl 값이 1인  bbb 필드 갯수 즉 여기서는 두개 이므로 $aa_count 값이 2개 되어야 하는데.. 

array 에러가 나네요..

$aa_count = ??

도움 부탁드립니다.