1
I made the code below to count the amount of records, but he tells me 1 to 1, I wonder 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;
}
?>
There is a closing tag right at the beginning of the code, this is not wrong?
– user28595