typeobjectadd.php 627 B

12345678910111213141516
  1. <?php
  2. include "auth.php";
  3. if (isset( $_POST['namemachine'])&& isset( $_POST['specification']))
  4. {
  5. $namemachine = htmlentities(mysqli_real_escape_string($link, $_POST['namemachine']));
  6. $specification = htmlentities(mysqli_real_escape_string($link, $_POST['specification']));
  7. $company=htmlentities(mysqli_real_escape_string($link, $_POST['company']));
  8. echo $company;
  9. $query = "INSERT INTO type_object VALUES (NULL,'$namemachine','$specification','$company')";
  10. $result = mysqli_query($link, $query) or die("Ошибка " . mysqli_error($link));
  11. echo " Объект добавлен ";
  12. }
  13. ?>