123456789101112131415161718192021222324252627 |
- <?php
- $host = "kurek620.beget.tech";
- $username = "kurek620_baze";
- $password = "6910WASD579h";
- $database = "kurek620_baze";
- $mysql = new mysqli($host, $username, $password, $database);
- if($mysql->connect_error){
- die("Ошибка подключения". $mysql->connect_error);
- }
- $query = "SELECT COUNT(*) as count FROM `ZUsers`";
- $result = $mysql->query($query);
- $row = $result->fetch_assoc();
- $countik = $row['count'];
- if(!$result){
- echo "что-то не так";
- }
- $query = "SELECT COUNT(*) as count FROM `Orders1`";
- $result = $mysql->query($query);
- $row = $result->fetch_assoc();
- $countik1 = $row['count'];
- if(!$result){
- echo "что-то не так";
- }
|