Return the number of rows in a result set: <?php ... echo "Failed to connect to MySQL: " . mysqli_connect_error(); } ... $rowcount=mysqli_num_rows($result);
確定! 回上一頁