1$result=mysql_query("SELECT count(*) as total from Students");
2$data=mysql_fetch_assoc($result);
3echo $data['total'];
4
1$sql = "SELECT COUNT(*) AS total from Members";
2$result = $conn->query($sql);
3$data = $result->fetch_assoc();
4echo $data['total'];