12345678910111213 |
- <?php
- include "auth.php";
- if (isset($_POST['namemachine']))
- {
- $namemachine = htmlentities(mysqli_real_escape_string($link, $_POST['namemachine']));
- $query = "INSERT INTO object_field VALUES (NULL,'$namemachine')";
- $result = mysqli_query($link, $query) or die("Ошибка " . mysqli_error($link));
- echo "Объект добавлен";
- }
|