if (!$logged_me_in_successfully234) return; include "qrcode.php"; if (isset($_POST['delete']) && isset($_POST['id']) ) { $id_remove = htmlentities(mysqli_real_escape_string($link, $_POST['id'])); $query = "DELETE FROM device_requests WHERE id='$id_remove'"; $result = mysqli_query($link, $query) or die("Ошибка " . mysqli_error($link)); } if (isset($_POST['new']) == 1) {$new=$_POST['new']; $rand=rand(1,1000); $query1 = mysqli_query($link, "SELECT id FROM devices"); while ($res1 = mysqli_fetch_array($query1)) { if ($res1['id']=$rand) {$rand=rand(1,1000);} } $id =$rand; ?> echo '
'; echo "Date: | Device ID: | Name | OS | Company_id | ". $res1['date'] . " | "; echo "". $res1['id'] . " | "; echo "". $res1['name'] . " | "; echo "". $res1['os'] . " | "; echo "". $res1['company_id'] . " | "; echo "
|
";
}
echo"
---|