1234567891011121314151617181920212223242526 |
- <?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);
- }
- $id = $_POST["id_hide"];
- $query = "DELETE FROM Orders1 WHERE id = $id";
- if ($mysql->query($query) === TRUE) {
- echo "<script>window.location.href = 'admin_page.php';</script>";
- } else {
- echo "Ошибка при удалении записи: " . $mysql->error;
- }
- ?>
|