I made the code below to count the number of records, but it tells me 1 to 1, I would like to know how I can do to add these records and call with an echo.
?>
<?php
$sql="SELECT id FROM processo";
$return = $conexao->query( $sql );
if ( $return == false ) {
echo $conexao->error;
}
while ($registro = $return->fetch_array()) {
$id=$registro["id"];
$result=count($sql);
echo $result;
}
?>