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