Total rows in table

Hi Guys,Pls help me on this

$sql = "SELECT * computerlist";

if ($result = mysqli_query($sql)) {

    // Return the number of rows in result set
    $rowcount = mysqli_num_rows( $result );
    
    // Display result
    printf("Total rows in this table :  %d\n", $rowcount);
 }

This should help: How to get record count?

Thank You :smiling_face: