Is there any mistake in this code ? or my error is somewhere else .
$conn = mysqli_connect("localhost","root","root","sajan")
or die("Unable to connect to MySQL");
$sql_count = "SELECT count(*) FROM user";
$result = $conn->query($sql_count);
$total_row = $result_count->num_rows;