public function get_all_fields($table,$key,$value){
$sql = "select * from $table where $key='$value'";
$rs = $this->_dql($sql);
if (odbc_num_rows($rs) <> 0) {
$data = array();
while($row = odbc_fetch_array($rs)){
foreach($row as $k=>$v){
if(is_numeric($v)){
$data[$k] = $v;
// $data[] = $v;
}else{
$data[$k] = gb_to_utf($v);
// $data[] = gb_to_utf($v);
}
}
}
odbc_free_result($rs);
odbc_close_all();
return $data;
}else {
unset($rs);
odbc_close_all();
return false;
}
}