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