connect_error) { die('连接失败: ' . $conn->connect_error); } // 查询数据量 $sql = 'SELECT COUNT(*) as count FROM ' . $kbmc; $result = $conn->query($sql); // 将查询结果转换为数组 $row = $result->fetch_assoc(); // 输出 JSON 格式的数据 echo json_encode($row); // 关闭数据库连接 $conn->close(); ?> PHP API 接口:查询指定数据库表数据量

原文地址: https://www.cveoy.top/t/topic/lKSP 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录