I need to do a calculation via sqlsrv, add a column of values.
Here is the code I tried to do:
$qryAC = "SELECT SUM(VLRECEITACONT) AS receitaConta
FROM [RDO].[dbo].[ANALISE_CRITICA]
WHERE CC='$partCC[$i]' ";
$stmtAC = sqlsrv_query( $conn, $qryAC );
echo $stmtAC;
How do I display the result of this query?