-1
Hello
I want to check the number of records in the bank and display on the screen the amount of records, but it’s not working, which may be wrong ?
<?php
include '../include/connection.php';
$query = "SELECT id FROM user ORDER BY id ASC";
$result = mysqli_query($link, $query) or die(mysql_error());
$rows = mysqli_num_rows($result);
while ($row = mysqli_fetch_array($result))
{
echo $rows;
}
?>
Thank you