typeobjectdesc.php 482 B

1234567891011121314
  1. <?php
  2. include "auth.php";
  3. if (isset($_POST['machine'])) {
  4. $machineid = htmlentities(mysqli_real_escape_string($link, $_POST['machine']));
  5. $query = "SELECT * FROM type_object WHERE id=$machineid";
  6. $result = mysqli_query($link, $query) or die("Ошибка " . mysqli_error($link));
  7. $res1 = mysqli_fetch_array($result);
  8. echo "Имя типа <b>" . $res1 ['name']."</b>";
  9. echo "<br>";
  10. echo "Описание " . $res1['specification'];
  11. }
  12. ?>