Hi, I'm working php with sql server and I need some help with the following:
I have this query
$sql = "select saldo_final from cuentas where doc = '1098788811'";
$consulta = sqlsrv_query($conn, $sql);
while($datos = sqlsrv_fetch_array($consulta, SQLSRV_FETCH_NUMERIC))
{
print_r($datos);
}
The fact is that it brings me the following results
Array ( [0] => 12492.0000 ) Array ( [0] => 4006.0000 ) Array ( [0] => 4094.0000 )
What I need is to take those 3 values by php and add them