gracias, la funcion es para sql server y la solucione asi:
Código PHP:
Ver original<?php
function campos($query) {
$res = sqlsrv_query
($this->conn,$query, array(), array( "Scrollable" => SQLSRV_CURSOR_KEYSET
)); if($res){
$cols = sqlsrv_num_fields($res);
$k = 0;
foreach( sqlsrv_field_metadata ( $res ) as $fieldMetadata ) {
foreach( $fieldMetadata as $name => $value ) {
$camps[$k++] = $value;
}
}
}
return $camps;
}
return null;
}
?>