Goodness knows why you thought that this was the correct way to obtain the number of records returned by your query: it's complete nonsense.
You should get rid of $fetch_row
and instead use mysqli_num_rows()
:
$numrows = mysqli_num_rows($result);