1、此方法速度比较快
$Query = 'Select count(*) as AllNum from tscgarmanage';
$a = mysqli_query( $conn, $Query );
$b = mysqli_fetch_assoc( $a );
echo $b['AllNum']; //条数
2、此方法速度比较慢
$sql = "SELECT * FROM tscgarmanage";
$zyvalue = $conn->query($sql)->num_rows;