Access first row of a query without sqlsrv_fecth_array

0

I have a query and I would like to access the first line without using sqlsrv_fetch_array, because this function jumps to the next line and I would not like that to happen.

 $resultado = sqlsrv_query($conexao98, $query, $params, $options) or die(print_r(sqlsrv_errors())); 

I want to retrieve the first field of the first line of "$ result" without that line getting lost.

    
asked by anonymous 27.12.2017 / 17:36

0 answers