function httpPost($url, $params) {
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $params);
$output=curl_exec($ch);
curl_close($ch);
return $output;
}
<?php
$result = $link->query('SELECT * FROM `last_winners` WHERE `steamid`="'.$id.'" ORDER BY `id` DESC');
while ($user = mysqli_fetch_array($result, MYSQLI_ASSOC)) {
?>
<td style="text-align: center;"><img src="<?echo $user['item_img'];?>" style="width: 100px;"></td><td><?echo $user['item_name'];?></td><td><?echo $user['price'];?> руб.</td><td id="zakaz<?echo $user['id'];?>"><?echo $state;?>
<?php
}
?>